Re: [R] plotting multiple groups (newbie Q)

2006-10-31 Thread hadley wickham
> Now I want to do some plotting: > > > plot(kSum$F2[group=="N"],kSum$DP_Level.mean[group=="N"],type="l") > # This works fine > > plot(kSum$F2[group=="SN"],kSum$DP_Level.mean[group=="SN"],type="l") > # This plots both "N" and "SN" in one line sequentially > > plot(kSum$F2[group=="Y"],kSum$DP_Lev

Re: [R] plotting multiple groups (newbie Q)

2006-10-30 Thread Petr Pikal
To: r-help@stat.math.ethz.ch From: Sumitrajit Dhar <[EMAIL PROTECTED]> Date sent: Mon, 30 Oct 2006 20:13:14 -0600 Subject: [R] plotting multiple groups (newbie Q) > Hi Folks, > > After loading a data set, I run

[R] plotting multiple groups (newbie Q)

2006-10-30 Thread Sumitrajit Dhar
Hi Folks, After loading a data set, I run the following: > kSum <- orderBy(~group,(summaryBy(DP_Level~F2 +group,data=kdata,FUN=c(mean,sd),na.rm=T))) kSum looks like this: > kSum F2 group DP_Level.mean DP_Level.sd 1 1.0 N -1.55186475 11.022245 4 2.0 N -2.48013300 10