Learn R Programming

MetaNLP (version 0.1.4)

wordcloud: Create word cloud from MetaNLP-object

Description

This method creates a word cloud from a MetaNLP object. The word size indicates the frequency of the words.

Usage

wordcloud(object, ...)

# S4 method for MetaNLP wordcloud( object, max.words = 70, colors = c("snow4", "darkgoldenrod1", "turquoise4", "tomato"), decision = c("total", "include", "exclude"), stop_words = FALSE, ... )

Value

nothing

Arguments

object

A MetaNLP object to plot

...

Additional parameters for wordcloud

max.words

Maximum number of words in the word cloud

colors

Character vector with the colors in

decision

Stratify word cloud by decision. Default is no stratification.

stop_words

Boolean to decide whether stop words shall be included in

Examples

Run this code
path <- system.file("extdata", "test_data.csv", package = "MetaNLP", mustWork = TRUE)
obj <- MetaNLP(path)
plt <- plot(obj)

Run the code above in your browser using DataLab