get_network_plot: get network plot from qgraph objects.

View source: R/get_network_plot.R

get_network_plotR Documentation

get network plot from qgraph objects.

Description

get network plot from qgraph objects.

Usage

get_network_plot(
  network,
  prefix = "",
  path = ".",
  device = "pdf",
  width = 10,
  height = 7,
  get.matrix = TRUE,
  ...
)

Arguments

network

a qgraph object.

prefix

the prefix of output plot files.

path

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

device

'pdf' or 'svg', deciding the output plot format.

width

the width of plot, in inch.

height

the height of plot, in inch.

get.matrix

logical. whether get the csv file of graph matrix. Default is TRUE.

...

other parameter from pdf or svg.

Value

a network plot will be output to the specified path.

Examples


data('mtcars')
network <- quickNet(mtcars)
get_network_plot(network, prefix = 'test')


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