I wanted to make a line graph but it doesn't seem to work this way. Just want a continuous line graph with this data that has missing values in the column "total_index", but i can't get it to work. If anybody has done it before give me a light please!
I'm trying to get to two lines in this graph, but it only works with the "cumulative" columns. Need help handling the other column.
library(ggplot2)
library(dplyr)
graphdata <- readr::read_csv("animation_cumulative1.csv")
graphplot <- ggplot()+
geom_line(data=graphdata, aes(x=year, y=total_index), color="Red")+
geom_point()
print(graphplot)