Skip to contents
print(cor.net)

Plot (partial) correlation network results.

print(dag.net)

Plot Bayesian network (DAG) results.

Usage

# S3 method for class 'cor.net'
print(x, file = NULL, width = 6, height = 4, dpi = 500, ...)

# S3 method for class 'dag.net'
print(
  x,
  file = NULL,
  width = 6,
  height = 4,
  dpi = 500,
  algorithm = names(x),
  ...
)

Arguments

x

Object (class cor.net or dag.net) returned from cor_network() or dag_network().

file

File name of saved plot (".png" or ".pdf").

width, height

Width and height (in inches) of saved plot. Defaults to 6 and 4.

dpi

Dots per inch (figure resolution). Defaults to 500.

...

Other arguments (currently not used).

algorithm

[For dag.net] Algorithm(s) to display. Defaults to plot the final integrated DAG from BN results for each algorithm in x.

Value

Invisibly return a grob object ("Grid Graphical Object", or a list of them) that can be further reused in ggplot2::ggsave() and cowplot::plot_grid().