plot_cloud: Creates a wordcloud of most occurring words in a string or...

Description Usage Arguments Value Examples

View source: R/plot_cloud.R

Description

Creates a wordcloud of most occurring words in a string or list of strings

Usage

1
2
3
4
5
6
plot_cloud(
  song,
  max_font_size = 1,
  max_words = 100,
  background_color = "black"
)

Arguments

song

A data frame including song_title and artist in each column

max_font_size

maximum font size - numeric

max_words

maximum number of words to be included in wordcloud

background_color

background color

Value

A wordcloud image

Examples

1
2
3
4
5
## Not run: 
song <- data.frame(song_title  = c("22", "Bohemian Rhapsody"), artist = c("Taylor Swift", "Queen"))
plot_cloud(song, max_font_size=1.6, max_words=100, background_color="white")

## End(Not run)

UBC-MDS/rlyrics documentation built on Feb. 5, 2022, 10:35 p.m.