top_Sentiments {texter} | R Documentation |
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.
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
top_Sentiments(doge$text, plot = TRUE)