[R] barplot(): X-Axis Labels

Martin Hoyle plxmh at nottingham.ac.uk
Mon Oct 14 13:52:14 CEST 2002


Try using las=2 in the barplot command;

barplot(response variable means,names=levels(explanatory
variable),las=2)

The text is then at 90 degrees,

Martin.

Martin Hoyle,
School of Life and Environmental Sciences,
University of Nottingham,
University Park,
Nottingham,
NG7 2RD,
UK
Webpage: http://myprofile.cos.com/martinhoyle

>>> Jess Balint <jbalinc at insight.rr.com> 10/13/02 10:47PM >>>
Hello all. I have a simple barplot with sixteen different segments.
When I plot my data, only five or six of the labels are showing in the
x-axis. How do go get them all to show? Can I set them at a 45.degree
angle? Thank you.

Jess
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list