plotResponseGraph: plot the estimated graph for multiple response variables

Description Usage Arguments Examples

View source: R/plotResponseGraph.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
plotResponseGraph(
  object,
  PmaxResponse = 0.5,
  PtrueResponse = NULL,
  name.responses = NA,
  edge.weight = FALSE,
  label.color = "black",
  node.size = 30,
  node.color = "dodgerblue",
  ...
)

Arguments

object

an object of class "BayesSUR"

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
data("example_eQTL", package = "BayesSUR")
hyperpar <- list( a_w = 2 , b_w = 5 )

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
plotResponseGraph(fit)

BayesSUR documentation built on Dec. 18, 2019, 1:42 a.m.