I've got a graph with really long labels. I've tried decreasing the font size, but they're still getting truncated. I've RTFMed & it seems that mgp should have something to do with this, but I can't make it work. I need about 2-3x as much space for labels as is available by default (or on the example below). boxplot(split(ranks,c(1:25)), names=items, horizontal=F) par(las=2,ps=7,mgp=c(1, 1, 0)) boxplot(split(ranks,c(1:25)), names=items, notch=T, horizontal=F, add=F) abline(h=18) abline(h=13) abline(h=10) abline(v=5.5) abline(v=10.5) abline(v=15.5) abline(v=20.5) par(ps=20) for (x in 1:5) text(x*5-2,y=26, categories[x]) P.S. Many thanks to the folks who responded to my last plea for help with not being able to find order() in the man pages. I don't know how I missed it. I even looked for it in the "See Also" of the sort and rank manpages (where it's pointed to). I'm sure this problem is similarly trivial, but I just can't see it. -- Jay Pfaffman pfaffman at relaxpc.com +1-415-821-7507 (H) +1-415-810-2238 (M) http://relax.ltc.vanderbilt.edu/~pfaffman/ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
=?iso-8859-1?Q?M?der_J?rg?=
2002-Feb-13 23:06 UTC
[R] increasing space available for labels
hallo, try inside text srt=90 (rotate the text) and cex=0.5 (or smaller it scales the text) joerg maeder> I've got a graph with really long labels. I've tried decreasing the > font size, but they're still getting truncated. I've RTFMed & it >seems that mgp should have something to do with this, but I can't make >it work. I need about 2-3x as much space for labels as is available by >default (or on the example below). > > boxplot(split(ranks,c(1:25)), names=items, horizontal=F) > par(las=2,ps=7,mgp=c(1, 1, 0)) > boxplot(split(ranks,c(1:25)), names=items, notch=T, horizontal=F, > add=F) abline(h=18) > abline(h=13) > abline(h=10) > abline(v=5.5) > abline(v=10.5) > abline(v=15.5) > abline(v=20.5) > par(ps=20) > for (x in 1:5) text(x*5-2,y=26, categories[x]) > > P.S. Many thanks to the folks who responded to my last plea for help > with not being able to find order() in the man pages. I don't know how > I missed it. I even looked for it in the "See Also" of the sort and > rank manpages (where it's pointed to). I'm sure this problem is > similarly trivial, but I just can't see it. > > -- > Jay Pfaffman pfaffman at relaxpc.com > +1-415-821-7507 (H) +1-415-810-2238 (M) > http://relax.ltc.vanderbilt.edu/~pfaffman/ >-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. -.-> 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 >_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._. _._ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._