[R] help with legend()

Schwarz, Paul paul.schwarz at oregonstate.edu
Wed Oct 15 21:09:11 CEST 2003



I am converting some S-PLUS scripts that I use for creating manuscript
figures to R so that I can take advantage of the plotmath capabilities.
In my S-PLUS scripts I like to use the key() function for adding legends
to plots, and I have a couple of questions regarding using the legend()
function in R.

1) is there a way to specify different colors for the legend vector of
text values?

2) is there a way to reverse the order of the legend items so that the
text values precede the symbols?


Thanks for your time and patience.

-Paul

Paul A. Schwarz, Ph.D.
Department of Forest Science
342 Richardson Hall
Oregon State University
Corvallis, Oregon 97331-5752
 
paul.schwarz at oregonstate.edu
 
(541) 737-8481 (office)
(541) 737-1393 (fax)




More information about the R-help mailing list