Thank you for your precious help. It works fine.

However, what about if I have two entries in the legend?

I tryed:

legend('topright', inset = .05, title = 'light ratios', pch = c(21,22), 
     legend = c(substitute('Green/Red' ~~ R^2 == r2,
list(r2=r2)),substitute('Green/Red' ~~ R^2 == r2, list(r2=r2))),
     horiz = FALSE, pt.bg = c('gray', 'black'), cex = 0.75, 
     bg = 'white') 

But it does not work.

Regards,
Phil

--
View this message in context: 
http://r.789695.n4.nabble.com/Legend-tp4103799p4104386.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to