# installing the required libraries
library(googleVis)
library(tidyverse)
# creating a data frame
data_frame = data.frame(group = c("Geekster","GeeksforGeeks",
"Geekster","Geekster",
"GeeksforGeeks","GeeksforGeeks",
"Geekster","GeeksforGeeks",
"Geekster","Geekster"),
people = c(10,12,21,45,23,54,
22,12,32,45),
rating = c(4,3,5,7,2,8,1,
10,9,6))
# printing the data frame
print("Original Data frame")
print(data_frame)
# creating a line chart for the data
graph <- gvisLineChart(data_frame, options=list(
legend="bottom"))
# plotting the data
plot(graph)