BayesSUR (version 1.1-2)

plot.ResponseGraph: plot the estimated graph for multiple response variables

Description

Plot the estimated graph for multiple response variables from a "BayesSUR" class object.

Usage

# S3 method for ResponseGraph
plot(
  x,
  PmaxResponse = 0.5,
  PtrueResponse = NULL,
  name.responses = NA,
  edge.weight = FALSE,
  label.color = "black",
  node.size = 30,
  node.color = "dodgerblue",
  ...
)

Arguments

x

an object of class getEstimator with estimator="Gy"

PmaxResponse

cutpoint for thresholding the learning structure matrix of multiple response variables. Default is 0.5

PtrueResponse

true adjacency matrix for the structure of multiple response variables

name.responses

A vector for the node names. The default is "NA" only to show the locations. Value "auto" show the response names from the orginal data.

edge.weight

draw weighted edges after thresholding at 0.5. The defaul value "FALSE" is not to draw weigthed edges

label.color

label color. Default is "black"

node.size

node size. Default is 30

node.color

node color. Default is "dodgerblue

...

other arguments

Examples

Run this code
# NOT RUN {
data("example_eQTL", package = "BayesSUR")
hyperpar <- list( a_w = 2 , b_w = 5 )

set.seed(9173)
fit <- BayesSUR(Y = example_eQTL[["blockList"]][[1]], 
                X = example_eQTL[["blockList"]][[2]],
                data = example_eQTL[["data"]], outFilePath = tempdir(),
                nIter = 100, burnin = 50, nChains = 2, gammaPrior = "hotspot",
                hyperpar = hyperpar, tmpFolder = "tmp/" )

## check output
# show the graph relationship between responses
Gy <- getEstimator(fit, estimator = "Gy")
plot(Gy)

# }

Run the code above in your browser using DataCamp Workspace