Learn R Programming

gcite (version 0.11.0)

author_cloud: Make Wordcloud of authors from Papers

Description

Takes a vector of authors and then creates a frequency table of those words and plots a wordcloud

Usage

author_cloud(
  authors,
  addstopwords = gcite_stopwords(),
  author_pattern = NULL,
  split = ",",
  verbose = TRUE,
  colors = c("#66C2A4", "#41AE76", "#238B45", "#006D2C", "#00441B"),
  ...
)

author_frequency( authors, author_pattern = NULL, split = ",", addstopwords = gcite_stopwords(), verbose = TRUE )

Value

A data.frame of the words and the frequencies of the authors

Arguments

authors

Vector of authors of papers

addstopwords

Additional words to remove from wordcloud

author_pattern

regular expression for patterns to exclude from individual authors

split

split author names (default ","), passed to strsplit

verbose

Print diagnostic messages

colors

color words from least to most frequent. Passed to gcite_wordcloud_spec

...

additional options passed to gcite_wordcloud_spec

Examples

Run this code
if (FALSE) {
L = gcite_author_info("John Muschelli")
paper_df = L$paper_df
authors = paper_df$authors
author_cloud(authors)
}

Run the code above in your browser using DataLab