Re: [R] plot many dfs in ggplot

2016-08-03 Thread PIKAL Petr
mail.com] Sent: Wednesday, August 3, 2016 9:21 PM To: lily li Cc: PIKAL Petr ; R mailing list Subject: Re: [R] plot many dfs in ggplot That Petr already showed. Please read his email again. lily li mailto:chocol...@gmail.com>> schrieb am Mi., 3. Aug. 2016 21:09: Thanks. How to add an a

Re: [R] plot many dfs in ggplot (and other ggplot questions)

2016-08-03 Thread Zach Simpson
Hi, In regards to your first question: >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

Re: [R] plot many dfs in ggplot

2016-08-03 Thread Ulrik Stervbo
gt;>> > Something like >>> > >>> > df1$fr <- 1 >>> > df2$fr <- 2 >>> > >>> > dfkompl <- rbind(df1, df2) >>> > >>> > ggplot(dfkompl, aes(x=time, y=varA, colour=factor(fr)) >>> > >>> >

Re: [R] plot many dfs in ggplot

2016-08-03 Thread lily li
t;> > >> > 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:51 PM >> > &g

Re: [R] plot many dfs in ggplot

2016-08-03 Thread Ulrik Stervbo
> > > > 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:51 PM > > > To: R mailing list > > >

Re: [R] plot many dfs in ggplot

2016-08-03 Thread lily li
half Of lily li > > Sent: Tuesday, August 2, 2016 8:51 PM > > To: R mailing list > > Subject: [R] plot many dfs in ggplot > > > > Hi all, > > > > I have another question. There are several dataframes, each has the same > > columns: time, varA, varB, var

Re: [R] plot many dfs in ggplot

2016-08-03 Thread PIKAL Petr
-help-boun...@r-project.org] On Behalf Of lily li > Sent: Tuesday, August 2, 2016 8:51 PM > To: R mailing list > Subject: [R] plot many dfs in ggplot > > Hi all, > > I have another question. There are several dataframes, each has the same > columns: time, varA, varB, varC, etc

Re: [R] plot many dfs in ggplot

2016-08-02 Thread lily li
Another question is, if I want to shade the range between the maximum and minimum values for daily or annual values, how to do it? Thanks again. On Tue, Aug 2, 2016 at 12:50 PM, lily li wrote: > Hi all, > > I have another question. There are several dataframes, each has the same > columns: time

[R] plot many dfs in ggplot

2016-08-02 Thread lily li
Hi all, I have another question. There are several dataframes, each has the same columns: time, varA, varB, varC, etc. If I want to plot time ~ varA of each dataframe, where different dataframe names use different colors. How to do this in ggplot? Thanks for your help. Right now, I tried to use t