cpop_network: Plot a ratio network

plot_lratio_networkR Documentation

Plot a ratio network

Description

Plot ratio network

Usage

plot_lratio_network(x, type = "ggraph")

lratio_to_network(x)

mst_lratio(x)

Arguments

x

A character vector representing edges by separating nodes with "–" i.e. in the form of "e1–e2"

type

Type of graphical visualisation, currently only support one of "visNetwork" (interactive graph).

  • "ggraph" (default): a non-interactive graph visualisation using the 'ggraph' package.

  • "igraph": a 'igraph' object from the 'igraph' package.

  • "visNetwork": an interactive graph visualisation using the 'visNetwork' package

Examples

x = c("X1--X10","X1--X3", "X1--X4","X1--X8","X1--X9","X2--X5","X2--X7","X2--X6", "X8--X10")
plot_lratio_network(x, type = "ggraph")
plot_lratio_network(x, type = "igraph")
plot_lratio_network(x, type = "visNetwork")

kevinwang09/CPOP documentation built on April 23, 2022, 11:05 a.m.