[R] plotting multiple groups (newbie Q)

hadley wickham h.wickham at gmail.com
Tue Oct 31 13:48:40 CET 2006


> 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_Level.mean[group=="Y"],type="l")
> # This gives the following error messages.


What is group?  I suspect it is not the kSum$group that you think it is.

Hadley



More information about the R-help mailing list