Transform
qgraphintoggplotplot(cor.net)plot(bns.dag)plot(dpi.dag)
Plot network results
print(cor.net)print(bns.dag)print(dpi.dag)
Usage
# S3 method for class 'cor.net'
plot(x, scale = 1.2, ...)
# S3 method for class 'cor.net'
print(x, scale = 1.2, file = NULL, width = 6, height = 4, dpi = 500, ...)
# S3 method for class 'bns.dag'
plot(x, algorithm, scale = 1.2, ...)
# S3 method for class 'bns.dag'
print(
x,
algorithm = names(x),
scale = 1.2,
file = NULL,
width = 6,
height = 4,
dpi = 500,
...
)
# S3 method for class 'dpi.dag'
plot(
x,
k = min(x$DPI$k.cov),
show.label = TRUE,
digits.dpi = 2,
faded.dpi = FALSE,
faded.dpi.limit = c(0, 0.25),
color.dpi.insig = "#EEEEEEEE",
scale = 1.2,
...
)
# S3 method for class 'dpi.dag'
print(
x,
k = min(x$DPI$k.cov),
show.label = TRUE,
digits.dpi = 2,
faded.dpi = FALSE,
faded.dpi.limit = c(0, 0.25),
color.dpi.insig = "#EEEEEEEE",
scale = 1.2,
file = NULL,
width = 6,
height = 4,
dpi = 500,
...
)Arguments
- x
Object (class
cor.net/bns.dag/dpi.dag) returned fromcor_net()/BNs_dag()/DPI_dag().- scale
Scale the
grobobject ofqgraphon theggplotcanvas. Defaults to1.2.- ...
Other arguments (currently not used).
- file
File name of saved plot (
".png"or".pdf").- width, height
Width and height (in inches) of saved plot. Defaults to
6and4.- dpi
Dots per inch (figure resolution). Defaults to
500.- algorithm
[For
bns.dag] Algorithm(s) to display. Defaults to plot the finally integrated DAG from BN results for each algorithm inx.- k
[For
dpi.dag] A single value ofk.covto produce the DPI(k) DAG. Defaults tomin(x$DPI$k.cov).- show.label
[For
dpi.dag] Show labels of partial correlations, DPI(k), and their significance on edges. Defaults toTRUE.- digits.dpi
[For
dpi.dag] Number of decimal places of DPI values displayed on DAG edges. Defaults to2.- faded.dpi
[For
dpi.dag] Transparency of edges according to the value of DPI. Defaults toFALSE.- faded.dpi.limit
[For
dpi.dag] Lower and upper limits ofabs(DPI)for"00"and"FF"transparency of edges. Defaults toc(0, 0.25).- color.dpi.insig
[For
dpi.dag] Edge color for insignificant DPIs. Defaults to"#EEEEEEEE"(faded light grey).
Value
Return a ggplot object that can be further modified and used in ggplot2::ggsave() and cowplot::plot_grid().
