
Last chance! 50% off unlimited learning
Sale ends in
Plot the network representation of the associations between responses and predictors, based on the estimated gamma matrix and graph of responses from a "BayesSUR" class object.
plotNetwork(
x,
includeResponse = NULL,
excludeResponse = NULL,
includePredictor = NULL,
excludePredictor = NULL,
MatrixGamma = NULL,
PmaxPredictor = 0.5,
PmaxResponse = 0.5,
nodesizePredictor = 2,
nodesizeResponse = 15,
no.isolates = FALSE,
lineup = 1.2,
gray.alpha = 0.6,
edgewith.response = 5,
edgewith.predictor = 2,
edge.weight = FALSE,
label.predictor = NULL,
label.response = NULL,
color.predictor = NULL,
color.response = NULL,
name.predictors = NULL,
name.responses = NULL,
vertex.frame.color = NA,
layoutInCircle = FALSE,
header = "",
...
)
an object of class BayesSUR
A vector of the response names which are shown in the network
A vector of the response names which are not shown in the network
A vector of the predictor names which are shown in the network
A vector of the predictor names which are not shown in the network
A matrix or dataframe of the latent indicator variable.
Default is NULL
and to extrate it from object of class inheriting
from an object of class BayesSUR
cutpoint for thresholding the estimated latent indicator variable. Default is 0.5
cutpoint for thresholding the learning structure matrix of multiple response variables. Default is 0.5
node size of Predictors in the output graph. Default is 15
node size of response variables in the output graph. Default is 25
remove isolated nodes from responses graph and full graph, may get problem if there are also isolated Predictors
A ratio of the heights between responses' area and predictors'
the opacity. The default is 0.6
the edge width between response nodes
the edge width between the predictor and response node
draw weighted edges after thresholding at 0.5. The
default value FALSE
is not to draw weighted edges
A vector of the names of predictors
A vector of the names of response variables
color of the predictor nodes
color of the response nodes
A subtitle for the predictors
A subtitle for the responses
color of the frame of the vertices. If you don't want vertices to have a frame, supply NA as the color name
place vertices on a circle, in the order of their
vertex ids. The default is FALSE
the main title
other arguments
data("exampleEQTL", package = "BayesSUR")
hyperpar <- list(a_w = 2, b_w = 5)
set.seed(9173)
fit <- BayesSUR(
Y = exampleEQTL[["blockList"]][[1]],
X = exampleEQTL[["blockList"]][[2]],
data = exampleEQTL[["data"]], outFilePath = tempdir(),
nIter = 10, burnin = 0, nChains = 1, gammaPrior = "hotspot",
hyperpar = hyperpar, tmpFolder = "tmp/"
)
## check output
# draw network representation of the associations between responses and covariates
plotNetwork(fit)
Run the code above in your browser using DataLab