Re: [R] Fitting long names in boxplot

From: Henrique Dallazuanna <wwwhsd_at_gmail.com>
Date: Fri, 29 Feb 2008 21:47:31 -0300

Try this:

Assuming that 'build' is a factor

par(mar=c(7,2,2,2), xpd = TRUE)
boxplot(time ~ build, horiz = T, col='lightblue', xaxt='n') text(1:nlevels(build), par("usr")[3]-0.50, levels(build), srt=45, cex=0.6)

On 29/02/2008, Alex Reynolds <areynolds_at_stamlab.org> wrote:
> I have the following code:
>
> subsetTimeDataPlot <- boxplot(subsetTimeData$time ~
> subsetTimeData$build, horizontal=True, col="lightblue", ...)
>
> The 'names' component consists of strings that can be up to 20-30
> characters long.
>
> How would I go about drawing the names vertically (not the boxplot) or
> shrinking the names text (I tried cex.names=0.7 but this didn't help).
>
> Thanks for any advice, I apologize if these are stupid questions,
>
> -Alex
>
> --
> Alex Reynolds
> University of Washington Medical Genetics
> 2211 Elliot
> Seattle, WA 98121
> areynolds_at_stamlab.org
>
> ______________________________________________
> R-help_at_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.
>

-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O

______________________________________________
R-help_at_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.
Received on Sat 01 Mar 2008 - 00:50:42 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 01 Mar 2008 - 01:30:18 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive