Learn R Programming

MetaNLP (version 0.1.4)

plot,MetaNLP,missing-method: Create bar plot from MetaNLP-object

Description

This method creates a bar plot from a MetaNLP object, displaying the most frequent word stems.

Usage

# S4 method for MetaNLP,missing
plot(
  x,
  y = NULL,
  n = 10,
  decision = c("total", "include", "exclude"),
  stop_words = FALSE,
  ...
)

Value

nothing

Arguments

x

A MetaNLP object to plot

y

not used

n

Number of bars

decision

Stratify bar plot by decision. Default is no stratification.

stop_words

Boolean to decide whether stop words shall be included in the summary. stop_words = TRUE means, that stop words are included.

...

Additional parameters for delete_stop_words (e.g. language of the stop words).

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