[R] Scatterplot question
Liaw, Andy
andy_liaw at merck.com
Thu Dec 9 18:05:07 CET 2004
I assume the blanks are actually NAs? If so, try something like (say `df'
is the data frame):
matplot(df$X, df[,-1], pch=1:3)
or refer to the help page for matplot() for more options.
Andy
> From: judith.baltsar at gmx.de
>
> Dear list members,
> I have a probably simple question concerning scatterplots: I want to
> draw a plot with one X but several Y columns, so that every group
> of samples gets a different symbol. My table looks like this:
>
> X Y1 Y2 Y3
> 1 1
> 2 3
> 3 5
> 4 7
> 5 9
> 6 11
> 7 13
> 8 15
>
> Simple in Excel or StarOffice, but how do I do it in R?
>
> Thanks a lot
>
> Judith
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>
>
More information about the R-help
mailing list