[R] legend with pch and colors possible?
Knut Krueger
rh at knut-krueger.de
Mon Nov 21 09:55:19 CET 2011
Hi to all
is it possible to build a legend with
plot(NA, type = "l",col="blue",lwd=2,ylim=c(-0.05,10),xlim=c(0,13),xaxt
= "n",xlab="",ylab="") # Grafikmodus mit erster Linie starten
Lcolors=c("blue","orchid","green")
lsymbols= c(16,17,15)
Ltext= c("text1","tex2","text3")
legend("topleft",cex=1,pch = lsymbols, Ltext, fill=Lcolors,
border=FALSE,ncol=1,xjust=2)
so that the symbols and the color squares have a space between?
Kind regards Knut
More information about the R-help
mailing list