Re: [R] Legend in plots

2009-05-11 Thread Jorge Ivan Velez
Dear Mafalda, ?legend is what you are looking for. Take a look at the help page. Here is one way to do what you asked for: legend('topleft', c('A','B','C'),lty=1, col=c(1,2,4)) HTH, Jorge On Mon, May 11, 2009 at 11:26 AM, Mafalda Viana wrote: > Dear R users, > > I have what I think it is a v

[R] Legend in plots

2009-05-11 Thread Mafalda Viana
Dear R users, I have what I think it is a very simple question concerning plots in R. If you could help me I would be very grateful. How can I include a legend in my plot? Below I give an example of my data and the code I am using. What I wish to accomplish is a legend saying that the black line