[R] reducing the number of x-axis lables in a bwplot while plotting all boxes

Cornelis de Gier cwdegier at gmail.com
Fri Feb 29 18:17:46 CET 2008


Well, actually, in Splus I had this problem. In R this problem seems
to be solved. Does anyone have an idea how to solve this problem in
Splus?

Cornelis

2008/2/29, Cornelis de Gier <cwdegier at gmail.com>:
> I'm looking for an answer to a similar question:
>
>  years <- as.factor(sort(rep(1987:2006,20)))
>  values <- rnorm(1:400,0,10)
>  plot(years,values)
>
>  results in 20 boxplots with x axis labels unreadable because there are
>  too many of them. How do I reduce the number of x axis labels?
>
>  Regards,
>
>  Cornelis



More information about the R-help mailing list