word_prop_scatter: Compare word frequencies between current era and prequel

View source: R/text_mining.R

word_prop_scatterR Documentation

Compare word frequencies between current era and prequel

Description

Compare word frequencies between current era and prequel

Usage

word_prop_scatter(
  pubs,
  col_use = title,
  era = sheet,
  n_top = 20,
  other_stop_words = NULL
)

Arguments

pubs

A data frame at least with a column for the category of interest.

col_use

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

era

Which column indicates whether the item is from prequel or current era. Can be character, factor, or logical. Tidyeval is supported.

n_top

Number of top entries to plot. Especially useful for isotype.

other_stop_words

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

Value

A ggplot2 object.


pachterlab/museumst documentation built on July 25, 2022, 11:53 a.m.