[R] how to draw an overlaid plot for multiple curves usingdifferent symbols for each curve?

Deepayan Sarkar deepayan at stat.wisc.edu
Mon Sep 20 02:26:14 CEST 2004


On Sunday 19 September 2004 18:55, Sun wrote:
> Hi, Thanks all (Andrew, Peter, Sean)!
>
> By the way, I looked at the "xyplot" in lattice library. It can draw
> "a" versus "b", conditioned on "c". But it draws curves in different
> panels and there seems no control on symbols.

You should get what you want with 

xyplot(b ~ a, groups = c)

You can control plotting symbol with the 'pch' argument.

Deepayan




More information about the R-help mailing list