[R] Help with scatter plot
Greg.Snow at imail.org
Tue May 11 22:50:01 CEST 2010
Probably easiest using the segments function.
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
greg.snow at imail.org
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of A Ezhil
> Sent: Tuesday, May 11, 2010 12:45 PM
> To: r-help at r-project.org
> Subject: [R] Help with scatter plot
> Dear All,
> I would like to add the mean line in the scatter plot by groups. I have
> plotted (X.val is 3 groups: 0, 1, 2): plot( Y ~ X.val). How can I add
> mean/median line (horizontal) for each group on the scatter plot?
> Thanks in advance.
> Kind regards,
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help