I want to plot mean daily duration for 3 groups:
I am trying to create a line graph with “day” on x axis, duration on “y”, for 3 groups “site”
Using ddply I am trying to summarise my data in order to plot means of daily duration for each site
I got this code from a book, but I am getting an unexpected symbol error
I think the error has to do with the “len” in the parantheses after “mean”? I am new to R and using mostly for making figures…
dailywater <- ddply(DailyWaterMeans, c(“site”, “day”) summarise, duration=mean(len))
Marjorie is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.