Re: [R] barplots - text direction

From: Simon Blomberg <blomsp_at_ozemail.com.au>
Date: Wed 24 Aug 2005 - 11:48:57 EST

See las under ?par. You can often pass par parameters to higher-level graphics functions, so barplot(h, las=2) (for example) works.

HTH, Simon.

At 11:27 AM 24/08/2005, Murray Pung wrote:
>If the variable names are too long to allow room for each to be displayed
>on a barplot, how can the direction of the text be changed?
>
>a <- cbind(2.4,2.4,2.5,2.6,2.6,2.6,2.6,2.6,2.9,2.9,2.9)
>b <- cbind(2.3,2.5,2.4,2.2,3.2,2.4,2.9,2.6,2.9,3.0,2.8)
>h <- rbind(a,b)
>colnames(h) <-
>c("one","two","three","four","five","six","seven","eight","nine","ten","eleven")
>rownames(h) <- c("Pre-stage","Post-stage")
>barplot(h, beside = T, legend = colnames(g), horiz = T, xlim = c(0, 5))
>
>
>Many Thanks
>Murray
>
>Murray Pung | Research Analyst
>AIM Research & HR Consulting
>PO Box 328, Nth Sydney NSW 2060
>P +61 (02) 9956 3951
>F +61 (02) 9922 2210
>www.aimsurveys.com.au
>
>______________________________________________
>R-help@stat.math.ethz.ch mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Simon Blomberg, B.Sc.(Hons.), Ph.D, M.App.Stat. Centre for Resource and Environmental Studies The Australian National University
Canberra ACT 0200
Australia
T: +61 2 6125 7800 email: Simon.Blomberg_at_anu.edu.au F: +61 2 6125 0757
CRICOS Provider # 00120C



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Aug 24 11:55:00 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 15:48:30 EST