r - Creating a sensible line chart to compare the average with the actual -


i have following dataset

enter image description here

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

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -