[R] how to plot annual values directly
lily li
chocold12 at gmail.com
Tue Aug 2 20:10:26 CEST 2016
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 1 0.5 2010-01-01
2010 1 2 0.8 2010-01-02
2010 1 3 1.0 2010-01-03
2010 1 4 0.9 2010-01-04
...
fig1 = ggplot()+ geom_path(data=df, aes(x=time, y= precip)
show(fig1)
[[alternative HTML version deleted]]
More information about the R-help
mailing list