get_centrality_plot: get network plot from stability results.

View source: R/get_centrality_plot.R

get_centrality_plotR Documentation

get network plot from stability results.

Description

a wrapper function of ggplot2::ggsave

Usage

get_centrality_plot(
  centrality,
  prefix = "",
  path = ".",
  device = "pdf",
  width = 10,
  height = 7,
  get.table = TRUE,
  ...
)

Arguments

centrality

output from quickNet::Centrality

prefix

the prefix of output plot files.

path

the path of output files, can be either a relative or absolute path.

device

any format supported by ggplot2::ggsave.

width

the width of plot, in inch.

height

the height of plot, in inch.

get.table

logical. whether get the csv file of centrality. Default is TRUE.

...

other parameter from ggplot2::ggsave.

Value

a centrality plot will be output to the specified path.

Examples

data('mtcars')
centrality <- Centrality(EBICglassoNet(mtcars))
get_centrality_plot(centrality, prefix = 'test')


LeiGuo0812/quickNet documentation built on May 1, 2024, 10:42 p.m.