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

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

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

laravel - Undefined property: Illuminate\Pagination\LengthAwarePaginator::$id (View: F:\project\resources\views\admin\carousels\index.blade.php) -