plot_wordcloud: Plot word cloud for a column

View source: R/text_mining.R

plot_wordcloudR Documentation

Plot word cloud for a column

Description

Plots a word cloud for columns in the metadata that don't have a controlled vocabulary. I guess maybe I should start using a controlled vocabulary.

Usage

plot_wordcloud(
  sheet,
  col_use = title,
  species_use = "all",
  year_min = NA,
  year_max = NA,
  other_stop_words = NULL,
  seed = 1,
  scale = c(6, 0.1),
  min.freq = 1,
  ...
)

Arguments

sheet

The sheet read in from Google Sheets as a tibble.

col_use

Which column to break down into words for word cloud. Tidyeval is supported.

species_use

Which species to filter by.

year_min

Minimum year. The range of years will be >= year_min and < year_max.

year_max

Maximum year.

other_stop_words

A character vector for other stop words besides the stop_words data frame that comes with tidytext.

seed

Random seed to use.

scale

A vector of length 2 indicating the range of the size of the words.

min.freq

words with frequency below min.freq will not be plotted

...

Other arguments passed to wordcloud::wordcloud.

Value

A html widget.


pachterlab/museumst documentation built on April 20, 2024, 11:26 p.m.