plot_ngrams {textanalyzer} | R Documentation |
Plot Ngrams
Description
Plot ngrams - Word(s) vs. Count.
Usage
plot_ngrams(ngrams_data, top_rows = 25, plot_nrows = 25)
Arguments
ngrams_data |
a data.frame containing word and n columns. |
top_rows |
a numeric vector of length 1. Number of top rows to be returned. |
plot_nrows |
a numeric vector of length 1. Number of rows to be plotted. |
Details
plot_ngrams
Value
A ggplot plot object of bar chart with words and their counts.
Author(s)
Ravindra Pushker
Examples
plot_ngrams(data.frame(word=c("test1", "test2"), n=c(25, 30)))
[Package textanalyzer version 0.2.0 Index]