author_cloud: Make Wordcloud of authors from Papers

Description Usage Arguments Value Examples

View source: R/author_cloud.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
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
)

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

Value

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

Examples

1
2
3
4
5
6
7
## Not run: 
L = gcite_author_info("John Muschelli")
paper_df = L$paper_df
authors = paper_df$authors
author_cloud(authors)

## End(Not run)

muschellij2/gcite documentation built on Oct. 31, 2021, 9:21 p.m.