plot.summary_cranly_network {cranly} | R Documentation |
Top-n package or author barplots according to a range of network statistics
Description
Top-n package or author barplots according to a range of network statistics
Usage
## S3 method for class 'summary_cranly_network'
plot(x, top = 20, according_to = NULL, scale = FALSE, ...)
Arguments
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 |
Examples
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)
[Package cranly version 0.6.0 Index]