Java Mailing List Archive

http://www.r-help.com/

Home » Home (12/2007) » R Help for Statistical Computing »

Re: [R] Boxplot names format

Peter Danenberg

2007-04-11

Replies:

> I create a boxplot but the names are too longs and i cant see them
> complete.

  If you're referring to labels on the x-axis, Jose, I'll
sometimes rotate them and increase the bottom margin:

  # Increase bottom margin by 0.1
  par(omd=c(0,1,0.1,1))
  boxplot(...)
  # Add perpendicular labels
  axis(1, at=1:length(labels), labels=labels, las=2)

  For another strategy, see "Kickstarting R: Text in the
margins."*

Best, Peter

-----------
* http://cran.r-project.org/doc/contrib/Lemon-kickstart/kr_mtext.html

______________________________________________
R-help@(protected)
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.
©2008 r-help.com - Jax Systems, LLC, U.S.A.