[R] Help with the 'legend' command

David Alan Shilane dshilane at stanford.edu
Mon Jun 10 00:38:51 CEST 2002


Hi-
   I'm trying to create a legend for a data plot containing four different
sets of information of case numbers over time; one set for each of the
four countries in my study.  I'm trying to create a legend that will show
the reader what type of point character I'm using for each country.  I
have the names of the four countries stored as a 4x1 vector called
"names", and their corresponding pch values are 19,20,23,25.  Here's the
part of the command that I have working so far:

legend(1980, 80000, names, .........)

In place of the ......., I'd like to insert the argument that will give it
the proper pch values for each country.  What should I do?

Thanks.

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