plot-comma-DDGraph-comma-missing-dash-method: Plot DDGraphs using RGraphviz...

Description Usage Arguments Examples

Description

Plot DDGraphs using RGraphviz

Usage

1
2
3
4
5
## S4 method for signature 'DDGraph,missing'
plot(x, y, ..., col=NULL, legend=FALSE, only.legend=FALSE, plot.class=TRUE,
    class.label=datasetName(x@dataset), ci.symbol="dot",
    plot.pvals=TRUE, pvals.format=function(x) sprintf("%.2f", x),
    pvals.fontsize=12, main=NULL)

Arguments

x

DDGraph object

y

unusued

col

specifies the colors to be used to color nodes. Can be any of the following:

  • named vector of colors

  • logical value (TRUE = nodes colored in default 0.1 to 1e-3 range, FALSE = no node coloring) - only available for binary datasets.

  • list of parameters to pass to mapEnrichmentToColorsDual(), valid pameters are: "palette.pos", "palette.neg", "class.col", "scale", "max.color.index"

legend

if to plot the color legend

only.legend

if to plot only the legend

plot.class

if to plot class labels node

class.label

if plot.class=TRUE the label of the class node

plot.pvals

if to plot p values on top of edges

ci.symbol

the RGraphviz arrowtail/head symbol name for conditional independence tests

pvals.format

a function to format the p values to be displayed on directed edges

pvals.fontsize

the size of the font for p values

main

main title

...

other parameters passed to layoutGraph()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
# load data
data(mesoBin)
# make DDGraph
g <- ncpc(mesoBin$Meso)

# default plot
plot(g)

# use colours
plot(g, col=TRUE)

## End(Not run)

ddgraph documentation built on Nov. 17, 2017, 10:50 a.m.