[R] Problems with par() and labels with boxplot

Peter Dalgaard p.dalgaard at biostat.ku.dk
Thu Aug 26 10:51:04 CEST 2004


"michael watson (IAH-C)" <michael.watson at bbsrc.ac.uk> writes:

> Quite a simple one really!
> 
> When I run boxplot(), the labels on the X axis are horizontal, and I
> want them vertical.  So I did:
> 
> par(las=3)
> boxplot(...)
> 
> And my labels just aren't there anymore....
> 
> Any help???

You may need to make space for them. par(mar=....)

E.g.:

par(las=2,mar=c(10.1,4.1,4.1,2.1))
boxplot(list(foobarbazbletch=rnorm(10),snafu=rnorm(20)))


-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907




More information about the R-help mailing list