r - Creating a sensible line chart to compare the average with the actual -
i have following dataset
i want create line chart comparing historical average vs 2016 monthly highway fatalities . want use ggplot graphing.
i had more 1 attempt still receive errors (error: not find function "ggplot2")
ggplot(homework_8_data, aes(x = months)) + geom_(aes(y = ave_since_2002), colour="blue") + geom_line(aes(y = x2016), colour = "grey") + ylab(label="average , actual highway fatalities") + xlab(label="months")
i need me understand error did , correct me. thanks
you have install ggplot2 :
install.packages("ggplot2")
and load :
library(ggplot2)
Comments
Post a Comment