Hi,
using the data set air quality I have written the following code:
library("tidyverse")
data(airquality)
airquality<-na.omit(airquality)
airquality$date <- as.Date(paste("1973", airquality$Month,airquality$Day,
sep="-"))
p1<-ggplot(airquality, aes(x= date, y = Ozone, col=factor(Month))) +geom_point() + geom_line()
p1
Now I would like to plot in the same graph the mean of ozone for each months.
Can anyone help me?
My best regards, Peter