Learn R Programming

statquotes (version 0.3.3)

quote_cloud: Generate a word cloud based upon quote database

Description

This function takes a search pattern (or regular expression) and generates a word cloud based upon that filter.

Usage

quote_cloud(search = ".*", max.words = 80, colors, ...)

Value

None. A wordcloud is plotted.

Arguments

search

Character string (or regular expression) used to search the database. Default is to search all quotes.

max.words

Integer; The maximum number of words to be plotted.

colors

A character vector of colors to be used to designate word frequency. The default is 5 levels, from light to dark green.

...

additional arguments passed to search_quotes and wordcloud

See Also

statquote, quote_tags, quotes, search_quotes. wordcloud

Examples

Run this code
quote_cloud()
quote_cloud(search = "graph")
quote_cloud(max.words = 10)

Run the code above in your browser using DataLab