dependency_plot: Plot network for dependenciesGraphs object

Description Usage Arguments Examples

View source: R/dependency_graphs.R

Description

Plot network for dependenciesGraphs object. Using visNetwork package. Adapted from the method plot in 'DependenciesGraphs'

Usage

1
dependency_plot(object, block = FALSE, width = NULL, height = NULL)

Arguments

object

: dependenciesGraphs object.

block

: Boolean. Default to False. When false, the nodes that are not fixed can be dragged by the user.

width

: Width (optional, defaults to automatic sizing)

height

: Height (optional, defaults to automatic sizing)

Examples

1
2
3
4
5
6
7
if (!require(DependenciesGraphs)) install.packages("DependenciesGraphs")
if (!require(visNetwork)) install.packages("visNetwork")
dep <- dependency_visualization('natverse', level = 'level_1')
dependency_plot(dep)

# size
dependency_plot(dep, height = "800px", width = "100%")

SridharJagannathan/natverse documentation built on July 28, 2019, 3:26 p.m.