[R] Scatterplot - symbols coded by factor

Alvaro Colina Santamaria acosa at ubu.es
Sat Feb 10 11:50:25 CET 2001


Matt Pocernich wrote:

> Hi - I would like to create a scatterplot with the symbols
coded by a
> factor in each record.  Is their a better way than what I
have used
> below?  I attempted to use the plot.factor, but cannot force
it to
> make a scatterplot instead of boxplots.  I have considerd
making a
> function with a 'for' statement for each level of the factor.
Is
> there a better way for when I am dealing with more levels of
factors?
> Thanks,  Matt Pocernich
>

You can use the function text.
plot(X,Y,type='n')
text(X, Y, labels = as.character(manuf))

--
==============================================================
Alvaro Colina                   |-|o||o||o||o||o||o||o||o||o|-
Area de Quimica Analitica       | Pza. Misael Banuelos s/n
Facultad de Ciencias            | 09001. Burgos. Spain
Universidad de Burgos           | Phone: 34-947-258817
e-mail: acosa at ubu.es            | FAX:   34-947-258831
==============================================================



-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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 at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list