[R] Help needed with legend

2010-05-03 Thread Nish
Hello, I am new to R and need some help with the legend. How can I add a legend for two variables (in two columns) each having multiple values to be explained in the legend. For example: Var 1 Var 2 symbol - Higher symbol - Higher symbol - Avgsymbol

Re: [R] Help needed with legend

2010-05-03 Thread John Kane
: From: Nish nisha.mukte...@gmail.com Subject: [R] Help needed with legend To: r-help@r-project.org Received: Monday, May 3, 2010, 3:10 PM Hello, I am new to R and need some help with the legend. How can I add a legend for two variables (in two columns) each having multiple values

Re: [R] Help needed with legend

2010-05-03 Thread Thomas Stewart
Something like this? plot(0,0) legend.text-c(VAR 1,Higher,Average,Lower,VAR 2,Higher,Average,Lower) legend.pch=1:8 legend.col=c(0,1,1,1,0,1,1,1) legend(bottomright,legend=legend.text,pch=legend.pch,col=legend.col,ncol=2) -tgs On Mon, May 3, 2010 at 3:10 PM, Nish nisha.mukte...@gmail.com wrote:

Re: [R] Help needed with legend

2010-05-03 Thread Nish
Thank you. It works! -- View this message in context: http://r.789695.n4.nabble.com/Help-needed-with-legend-tp2124457p2124857.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list