Skip to content

Instantly share code, notes, and snippets.

@manashmandal
Created October 12, 2016 08:03
Show Gist options
  • Save manashmandal/f6965c6022a8a6cb4e0476ef13f1cfdb to your computer and use it in GitHub Desktop.
Save manashmandal/f6965c6022a8a6cb4e0476ef13f1cfdb to your computer and use it in GitHub Desktop.
Plotting sentiment
install.packages('ggplot2')
require(ggplot2)
df <- data.frame(Sentiment = c('Positive', 'Negative'), Count = c(174, 115))
ggplot(df, aes(Sentiment, Count)) + geom_bar(stat="identity")
@manashmandal
Copy link
Author

donald_trump_sent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment