Subject: Re: [R] plotting question
From: Douglas Bates (bates@stat.wisc.edu)
Date: Thu 27 Apr 2000 - 04:08:20 EST
Message-ID: <6rbt2wohuz.fsf@franz.stat.wisc.edu>
Thaddeus Tarpey <thaddeus.tarpey@wright.edu> writes:
> I would like to plot two different samples on the same scatterplot in R
> using different symbols for the different groups.
> Could someone please let me know how this can be done?
One way is to use the pch argument to the plot function, as in
> library(MASS)
> data(michelson)
> plot(Speed ~ as.integer(Run), data = michelson, pch = as.integer(Expt))
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
This archive was generated by hypermail 2b25 : Mon 17 Jul 2000 - 12:33:16 EST