Skip to content

Instantly share code, notes, and snippets.

@audhiaprilliant
Created December 13, 2020 09:24
Show Gist options
  • Select an option

  • Save audhiaprilliant/8701780ca439bfad79638220a49286b3 to your computer and use it in GitHub Desktop.

Select an option

Save audhiaprilliant/8701780ca439bfad79638220a49286b3 to your computer and use it in GitHub Desktop.
Twitter Data Visualization using ggplot2
# Import libraries
library(ggplot2)
library(lubridate)
# Load the data of Joko Widodo
data.jokowi.df = read.csv(file = 'data-joko-widodo.csv',
header = TRUE,
sep = ',')
senti.jokowi = read.csv(file = 'sentiment-joko-widodo.csv',
header = TRUE,
sep = ',')
# Load the data of Prabowo Subianto
data.prabowo.df = read.csv(file = 'data-prabowo-subianto.csv',
header = TRUE,
sep = ',')
senti.prabowo = read.csv(file = 'sentiment-prabowo-subianto.csv',
header = TRUE,
sep = ',')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment