[R] Plotting symbols

Setzer.Woodrow@epamail.epa.gov Setzer.Woodrow at epamail.epa.gov
Mon Nov 12 23:21:02 CET 2001


I don't think this is cute, but it works:

> plot(0:1,0:1,type="n",xaxt="n",yaxt="n",xlab="",ylab="",bty="n")
> legend(0,1,legend=as.character(1:25),pch=1:25)

R. Woodrow Setzer, Jr.                                            Phone:
(919) 541-0128
Experimental Toxicology Division                       Fax:  (919)
541-5394
Pharmacokinetics Branch
NHEERL MD-74; US EPA; RTP, NC 27711


                                                                                                               
                    Murray Jorgensen                                                                           
                    <maj at waikato.ac.nz>         To:     r-help at stat.math.ethz.ch                               
                    Sent by:                    cc:                                                            
                    owner-r-help at stat.ma        Subject:     [R] Plotting symbols                              
                    th.ethz.ch                                                                                 
                                                                                                               
                                                                                                               
                    11/13/01 05:20 AM                                                                          
                                                                                                               
                                                                                                               




Has anyone got a cute way of compiling a table of the available plotting
symbols?

I've been repeatedly pasting in

cno <- cno + 1
cno
plot(x,y,pch=cno)

which is tedious, and besides I have to note down the symbols by hand.


Dr Murray Jorgensen      http://www.stats.waikato.ac.nz/Staff/maj.html
Department of Statistics, University of Waikato, Hamilton, New Zealand
Email: maj at waikato.ac.nz                            Fax +64-7 838 4155
Phone +64-7 838 4773 home phone +64-7 856 6705  Mobile +64-21 139 5862

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
_._._._




-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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