Learn R Programming

pkgstats (version 0.1.1)

plot_network: Plot interactive visNetwork visualisation of object-relationship network of package.

Description

Plot interactive visNetwork visualisation of object-relationship network of package.

Usage

plot_network(s, plot = TRUE, vis_save = NULL)

Arguments

s

Package statistics obtained from pkgstats function.

plot

If TRUE, plot the network using visNetwork which opens an interactive browser pane.

vis_save

Name of local file in which to save html file of network visualisation (will override plot to FALSE).

Value

(Invisibly) A visNetwork representation of the package network.

Examples

Run this code
# NOT RUN {
f <- system.file ("extdata", "pkgstats_9.9.tar.gz", package = "pkgstats")
# }
# NOT RUN {
p <- pkgstats (f)
plot_network (p)
# }

Run the code above in your browser using DataLab