| word_cloud.cranly_network | R Documentation | 
wordcloud of author names, package descriptions, and package titles
## S3 method for class 'cranly_network'
word_cloud(
  x,
  package = Inf,
  author = Inf,
  maintainer = Inf,
  base = TRUE,
  recommended = TRUE,
  exact = TRUE,
  perspective = "description",
  random_order = FALSE,
  ignore_words = c("www.jstor.org", "www.arxiv.org", "arxiv.org", "provides", "https"),
  stem = FALSE,
  colors = rev(colorspace::heat_hcl(10)),
  ...
)
## S3 method for class 'numeric'
word_cloud(
  x,
  random_order = FALSE,
  colors = rev(colorspace::heat_hcl(10)),
  ...
)
| x | either 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  | 
| maintainer | a vector of character strings with the maintainer names to be matched. Default is  | 
| 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  | 
| perspective | should the wordcloud be that of package descriptions ( | 
| random_order | should words be plotted in random order? If  | 
| ignore_words | a vector of words to be ignored when forming the corpus. | 
| stem | should words be stemmed using Porter's stemming algorithm? Default is  | 
| colors | color words from least to most frequent | 
| ... | other arguments to be passed to wordcloud::wordcloud (except  | 
When applied to cranly_network objects, word_cloud() subsets
either according to author (using the intersection of the result
of author_of() and author_with()) or according to package
(using the intersection of the results of package_with() and
package_by()).
For handling more complex queries, one can manually extract the #'
term frequencies from a supplied vector of character strings (see
compute_term_frequency()), and use word_cloud() on them. See the
examples.
A word cloud.
compute_term_frequency()
## Package directives network cran_db <- clean_CRAN_db() package_network <- build_network(cran_db) ## Descriptions of all packages in tidyverse tidyverse <- imported_by(package_network, "tidyverse", exact = TRUE) set.seed(123) word_cloud(package_network, package = tidyverse, exact = TRUE, min.freq = 2) ## or by manually creating the term frequencies from descriptions descriptions <- descriptions_of(package_network, tidyverse, exact = TRUE) term_freq <- compute_term_frequency(descriptions) set.seed(123) word_cloud(term_freq, min.freq = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.