Flipping labels on bottom of boxplot
4
0
Entering edit mode
Paul Geeleher ★ 1.3k
@paul-geeleher-2679
Last seen 9.6 years ago
Hi all, I want to output some boxplots as PDF files, but I'm having a problem in that you can't see all the labels at the bottom of the screen because they overlap. Have a look here if you want to see what I'm talking about: http://frink.nuigalway.ie/~pat/boxplot.pdf As you can see only half the array labels are visible. Is there a way of flipping these labels 90 degrees, so that they vertical, and hopefully all visible? I've seen it somewhere before but don't know how to do it... Thanks, -Paul.
• 1.0k views
ADD COMMENT
0
Entering edit mode
Kort, Eric ▴ 220
@kort-eric-1483
Last seen 6.1 years ago
United States
> Paul Geeleher > To: bioconductor at stat.math.ethz.ch > > Hi all, > > I want to output some boxplots as PDF files, but I'm having a > problem in that you can't see all the labels at the bottom of > the screen because they overlap. > > Have a look here if you want to see what I'm talking about: > http://frink.nuigalway.ie/~pat/boxplot.pdf > > As you can see only half the array labels are visible. > > Is there a way of flipping these labels 90 degrees, so that > they vertical, and hopefully all visible? I've seen it > somewhere before but don't know how to do it... Have you tried par(las=2)? (see ?par) -Eric This email message, including any attachments, is for th...{{dropped:6}}
ADD COMMENT
0
Entering edit mode
Paul Geeleher ★ 1.3k
@paul-geeleher-2679
Last seen 9.6 years ago
Perfect! Thanks alot I thought it was something small like that... -Paul. On Fri, Apr 25, 2008 at 2:55 PM, Artur Veloso <abveloso at="" gmail.com=""> wrote: > Paul, > > try adding "las=2" to your boxplot function call. > > Cheers, > Artur > > boxplot(count ~ spray, data = InsectSprays, col = "lightgray",las=2) > > > > On Fri, Apr 25, 2008 at 8:48 AM, Paul Geeleher <paulgeeleher at="" gmail.com=""> > wrote: > > > > > > > > > Hi all, > > > > I want to output some boxplots as PDF files, but I'm having a problem > > in that you can't see all the labels at the bottom of the screen > > because they overlap. > > > > Have a look here if you want to see what I'm talking about: > > http://frink.nuigalway.ie/~pat/boxplot.pdf > > > > As you can see only half the array labels are visible. > > > > Is there a way of flipping these labels 90 degrees, so that they > > vertical, and hopefully all visible? I've seen it somewhere before but > > don't know how to do it... > > > > Thanks, > > > > -Paul. > > > > _______________________________________________ > > Bioconductor mailing list > > Bioconductor at stat.math.ethz.ch > > https://stat.ethz.ch/mailman/listinfo/bioconductor > > Search the archives: > http://news.gmane.org/gmane.science.biology.informatics.conductor > > > >
ADD COMMENT
0
Entering edit mode
Ido M. Tamir ▴ 150
@ido-m-tamir-2778
Last seen 9.6 years ago
On Friday 25 April 2008 15:48:34 Paul Geeleher wrote: > Hi all, > > I want to output some boxplots as PDF files, but I'm having a problem > in that you can't see all the labels at the bottom of the screen > because they overlap. > > Have a look here if you want to see what I'm talking about: > http://frink.nuigalway.ie/~pat/boxplot.pdf > > As you can see only half the array labels are visible. > > Is there a way of flipping these labels 90 degrees, so that they > vertical, and hopefully all visible? I've seen it somewhere before but > don't know how to do it... boxplot(len ~ dose, data = ToothGrowth,las=2) But I think you could get problems with the margins. Then you have to set par(mar=c(10, 4, 4, 2) +0.1). HTH, ido
ADD COMMENT
0
Entering edit mode
@sylviamerkukmuensterde-1608
Last seen 9.6 years ago
Dear Paul, did you try the parameter las from par ? par(las=2) before calling the boxplot command should turn the labels. If the labels do not fit and need adjustment you can add the parameter cex (have a look at ?par). Best regards Sylvia Am Freitag, den 25.04.2008, 14:48 +0100 schrieb Paul Geeleher: > Hi all, > > I want to output some boxplots as PDF files, but I'm having a problem > in that you can't see all the labels at the bottom of the screen > because they overlap. > > Have a look here if you want to see what I'm talking about: > http://frink.nuigalway.ie/~pat/boxplot.pdf > > As you can see only half the array labels are visible. > > Is there a way of flipping these labels 90 degrees, so that they > vertical, and hopefully all visible? I've seen it somewhere before but > don't know how to do it... > > Thanks, > > -Paul. > > _______________________________________________ > Bioconductor mailing list > Bioconductor at stat.math.ethz.ch > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor
ADD COMMENT

Login before adding your answer.

Traffic: 840 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6