plot.summary_cranly_network | R Documentation |
Top-n package or author barplots according to a range of network statistics
## S3 method for class 'summary_cranly_network' plot(x, top = 20, according_to = NULL, scale = FALSE, ...)
x |
a |
top |
integer. How may top packages or authors should be plotted? Default is |
according_to |
the statistic according to which the top- |
scale |
logical. Should the statistics be scaled to lie between |
... |
currently not used |
cran_db <- clean_CRAN_db() package_network <- build_network(cran_db) package_summaries <- summary(package_network) plot(package_summaries, according_to = "n_imported_by", top = 30) plot(package_summaries, according_to = "n_depended_by", top = 30) plot(package_summaries, according_to = "page_rank", top = 30) ## author network author_network <- build_network(cran_db, perspective = "author") author_summaries <- summary(author_network) plot(author_summaries, according_to = "n_collaborators", top = 30) plot(author_summaries, according_to = "n_packages", top = 30) plot(author_summaries, according_to = "page_rank", top = 30)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.