View source: R/get_compare_plot.R
get_compare_plot | R Documentation |
get network difference plot from NetCompare and quickNet results.
get_compare_plot(
NetCompare,
network_G,
maximum = 0.47,
use.mask = "none",
output = TRUE,
prefix = "",
path = ".",
device = "pdf",
width = 10,
height = 7,
...
)
NetCompare |
the result of |
network_G |
the result of |
maximum |
regards the highest of the maximum or highest absolute edge weight as the highest weight to scale the edge widths too. To compare several graphs, set this argument to a higher value than any edge weight in the graphs (typically 1 for correlations). If you want the same scale as network_G, keep it same as the number you set in quickNet. |
use.mask |
only present significant different edges that are non-zero in the EBICglasso networks constructed from data1, data2, or both.
|
output |
whether output the plots as pdf files. |
prefix |
the prefix of output plot files. |
path |
the path of output files, can be either a relative or absolute path. |
width |
the width of plot, in inch. |
height |
the height of plot, in inch.
|
... |
... other parameter from |
a list contains the diff_plot, diff_pos_plot and diff_neg_plot, representing the network difference of global, nw1>nw2 and nw1<nw2.
data('mtcars')
network_G <- quickNet(mtcars)
NetCompare <- NetCompare(mtcars,mtcars^3,it=100)
get_compare_plot(NetCompare, network_G, output = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.