Re: [R] how to plot annual values directly

2016-08-04 Thread Duncan Mackay
l.xyplot(x, avg[group.number], type = "l", col = "black") } ) Regards Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351 Email: home: mac...@northnet.com.au -Original Message- From: R-help [mailto:r-help-bo

Re: [R] how to plot annual values directly

2016-08-03 Thread PIKAL Petr
[mailto:ulrik.ster...@gmail.com] Sent: Wednesday, August 3, 2016 9:03 PM To: lily li ; PIKAL Petr Cc: R mailing list Subject: Re: [R] how to plot annual values directly You could use dplyr: library(plyr) ddply(df, .variables = "year", summarise, mean.precip = mean(precip)) Hope this h

Re: [R] how to plot annual values directly

2016-08-03 Thread Ulrik Stervbo
rs > > Petr > > > > > -Original Message- > > > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of lily > li > > > Sent: Tuesday, August 2, 2016 8:10 PM > > > To: R mailing list > > > Subject: [R] how to plot annual values di

Re: [R] how to plot annual values directly

2016-08-03 Thread lily li
t sure if it is > enough direct. > > Cheers > Petr > > > -Original Message- > > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of lily li > > Sent: Tuesday, August 2, 2016 8:10 PM > > To: R mailing list > > Subject: [R] how to plot an

Re: [R] how to plot annual values directly

2016-08-03 Thread PIKAL Petr
: Tuesday, August 2, 2016 8:10 PM > To: R mailing list > Subject: [R] how to plot annual values directly > > Hi R users, > > I have a dataframe, with daily precipitation data, is it possible to plot > annual > mean or annual sum values directly? Thanks for your help. >

[R] how to plot annual values directly

2016-08-02 Thread lily li
Hi R users, I have a dataframe, with daily precipitation data, is it possible to plot annual mean or annual sum values directly? Thanks for your help. df year month day precip time 2010 1 10.5 2010-01-01 2010 1 20.8 2010-01-02 2010