[R] Boxplot names format

Peter Danenberg pcd at wikitex.org
Wed Apr 11 16:16:06 CEST 2007

> 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
     # Add perpendicular labels
     axis(1, at=1:length(labels), labels=labels, las=2)

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

Best, Peter

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

More information about the R-help mailing list