va_wordcloud: wordclouds

Description Usage Arguments Details Methods Examples

Description

Creates a wordcloud for a downloaded text using the wordcloud package.

Usage

1
2
3
4
5
## S4 method for signature 'book'
wordcloud(words, freq, scale = c(4, 0.5), min.freq = 3,
  max.words = Inf, random.order = TRUE, random.color = FALSE, 
  rot.per = 0.1, colors = "black", ordered.colors = FALSE, 
  use.r.layout = FALSE, fixed.asp = TRUE, ...)

Arguments

words

a book object.

freq,scale,min.freq,max.words,random.order,random.color,rot.per, colors,ordered.colors,use.r.layout,fixed.asp,...

As in the wordcloud package's wordcloud() function.

Details

This is an example showing how one can use the information stored in a book object to do analysis. Exactly as in the code here, you would call text(book, with.license=FALSE) to extract the text for analysis. Note that doing so does not absolve you from the Project Gutenberg license.

Methods

signature(words = "book")

Examples

1
2
3
4
5
6
7
## Not run: 
library(rgutenberg)
x <- rgutenberg()

wordcloud(x)

## End(Not run)

wrathematics/rgutenberg documentation built on May 4, 2019, 10:54 a.m.