Description Usage Arguments Value Examples
View source: R/top_Sentiments.R
This function returns the top 10 positive and negative words expressed in a text. By defaults a data frame of words classified as positive or negative based on weights.
1 | top_Sentiments(word_vec, plot)
|
word_vec |
This is the corpus you want to extract the sentiments from |
plot |
(TRUE/FALSE) TRUE means you want to return a plot which you can further customize. FALSE means a dataframe will be returned |
a data frame object if plot is FALSE. a ggplot object if plot = TRUE
1 | top_Sentiments(doge$text, plot = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.