Re: [R] Problem with legend

2011-09-20 Thread Komine
Thank you Sarah and Petit bleu for your help. I solved my problem with the code of Sarah. Komine -- View this message in context: http://r.789695.n4.nabble.com/Problem-with-legend-tp3826973p3827461.html Sent from the R help mailing list archive at Nabble.com. _

Re: [R] Problem with legend

2011-09-20 Thread Sarah Goslee
You're passing a vector of length 3 to the legend argument of legend(), so R is assuming that you have three things you want to display. There are two alternatives: 1. Provide legend() a legend that's a single character vector. 2. Specify that you don't want symbols for the last two of the three l

Re: [R] Problem with legend

2011-09-20 Thread PtitBleu
Maybe by adding col=c("grey","white","white"), bg="white but not sure ... Have a nice end of day, Ptit Bleu. -- View this message in context: http://r.789695.n4.nabble.com/Problem-with-legend-tp3826973p3827120.html Sent from the R help mailing list archive at Nabble.com. ___

Re: [R] problem with legend

2008-12-12 Thread Jim Lemon
valeria pedrina wrote: hi all, I want to do a plot and put the legend on the left of y axis this is my code: x<-seq(1980,2005,1) plot(x,tfa_ita,type="l",col=1,xlim=c(1979,2005),ylim=c(0.2,1.7),xlab="",ylab="",main="Totale Attivita` Finanziarie") lines(x,tfa_spa,type="l",col=2) lines(x,tfa_aus,t