[R] legend(): adjust space between symbol and tex
Knut Suebert
ksueber at gwdg.de
Sat Sep 11 15:05:25 CEST 1999
Hello,
I'd like to ask, how to adjust the space between symbol/line and text in a
legend. My legend() is build like that
legend(xmax-netzdiff/11, # shouldn't matter here
ifelse(ydiff>=0, #
ymin-6.5*(netzdiff/11), #
ymax-netzdiff/11), #
c("stehender Stamm","Windwurf",
"Eklektor","Thermometer","Kreuzfalle"),
col=c("#000000","#808080","#707070","#A0A0A0","#404040"),
merge=T,
pch=c( 1,-1, 5,20, 4),
lty=c(-1, 1,-1,-1,-1),
xjust=1, yjust=ifelse(ydiff>=0,-1,1),
y.intersp=0.8, cex=0.6)
and looks like http://www.gwdg.de/~ksueber/beispiel.jpg or
+-------------------------+
|O stehender Stamm |
|-- Windwurf |
|# Eklektor |
and so, but it should look something like
+----------------------+
| O stehender Stamm |
| --- Windwurf |
| # Eklektor |
and so on. Most important for me would be to reduce the space between
symbols and text.
Thank you,
Knut Sübert
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list