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,type="l",col=3)
lines(x,tfa_uk,type="l",col=4)
lines(x,tfa_ger,type="l",col=5)
lines(x,tfa_usa,type="l",col=1,lty=4)
lines(x,tfa_jap,type="l",col=2,lty=4)
lines(x,tfa_can,type="l",col=3,lty=4)
lines(x,tfa_fra,type="l",col=4,lty=4)

legend(locator[1],c("ita","spa","aus","uk","ger","usa","jap","can","fra"),col=c(1,2,3,4,5,1,2,3,4),lty=c(1,1,1,1,1,4,4,4,4))


when I touch the graphics to put the legend, R puts it on my lines and not
on the left of y axis

any idea? where I make a mistake?

thank you very much
Valeria

        [[alternative HTML version deleted]]

______________________________________________
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