plot.cranly_network {cranly} | R Documentation |
Interactive visualization of a package or author cranly_network
Description
Interactive visualization of a package or author cranly_network
Usage
## S3 method for class 'cranly_network'
plot(
x,
package = Inf,
author = Inf,
directive = c("imports", "suggests", "enhances", "depends", "linking_to"),
base = TRUE,
recommended = TRUE,
exact = TRUE,
global = TRUE,
physics_threshold = 200,
height = NULL,
width = NULL,
dragNodes = TRUE,
dragView = TRUE,
zoomView = TRUE,
legend = TRUE,
title = TRUE,
plot = TRUE,
...
)
Arguments
x |
a |
package |
a vector of character strings with the package names to be matched. Default is |
author |
a vector of character strings with the author names to be matched. Default is |
directive |
a vector of at least one of |
base |
logical. Should we include base packages in the subset? Default is |
recommended |
logical. Should we include recommended packages in the subset? Default is |
exact |
logical. Should we use exact matching? Default is |
global |
logical. If |
physics_threshold |
integer. How many nodes before switching off physics simulations for edges? Default is |
height |
: Height (optional, defaults to automatic sizing) |
width |
: Width (optional, defaults to automatic sizing) |
dragNodes |
logical. Should the user be able to drag the nodes that are not fixed? Default is |
dragView |
logical. Should the user be able to drag the view around? Default is |
zoomView |
logical. Should the user be able to zoom in? Default is |
legend |
logical. Should a legend be added on the resulting visualization? Default is |
title |
logical. Should a title be added on the resulting visualization? Default is |
plot |
logical. Should the visualization be returned? Default is |
... |
currently not used. |
Examples
cran_db <- clean_CRAN_db()
package_network <- build_network(cran_db)
## The package directives network of all users with Ioannis in
## their name from the CRAN database subset crandb
plot(package_network, author = "Ioannis", exact = FALSE)
## The package directives network of "Achim Zeileis"
plot(package_network, author = "Achim Zeileis")
author_network <- build_network(cran_db, perspective = "author")
plot(author_network, author = "Ioannis", exact = FALSE, title = TRUE)