get_bridge_plot: get bridge plot from bridge results.

View source: R/get_bridge_plot.R

get_bridge_plotR Documentation

get bridge plot from bridge results.

Description

a wrapper function of ggplot2::ggsave

Usage

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

Arguments

bridge

output from quickNet::Bridge

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 bridge coefficient. Default is TRUE.

...

other parameter from ggplot2::ggsave.

Value

a Bridge plot will be output to the specified path.

Examples

data('mtcars')
Bridge <- Bridge(quickNet(mtcars), communities = c(rep(1,5),rep(2,6)))
get_bridge_plot(Bridge, prefix = 'test')


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