[R] Boxplot names
John Fox
jfox at mcmaster.ca
Thu Jul 19 17:53:42 CEST 2012
Dear Jessica,
You might try par(las=2) to rotate the tick labels to be perpendicular to the axes.
I hope this helps,
John
------------------------------------------------
John Fox
Sen. William McMaster Prof. of Social Statistics
Department of Sociology
McMaster University
Hamilton, Ontario, Canada
http://socserv.mcmaster.ca/jfox/
On Thu, 19 Jul 2012 16:58:26 +0200
Jessica Streicher <j.streicher at micromata.de> wrote:
> Copied the wrong lines, sry
>
> l<-rep(list(1:5),20); boxplot(l,names=sample(1:20,20))
>
> of course.
>
> thanks for the answer
>
> .
> On 19.07.2012, at 16:17, Peter Ehlers wrote:
>
> > On 2012-07-19 06:58, Jessica Streicher wrote:
> >> When i make Boxplots with a lot of boxes, the names of them get only written down every second "column".
> >> Since they aren't in any way ordered, you don't see anymore to what they belong.
> >>
> >> example:
> >>
> >> l<-rep(list(1:5),20); boxplot(l,names=sample(20,1:20))
> >>
> >> Is there a way to show them all, or do i have to split the plots?
> >
> > [Actually, your example is not reproducible without error - see
> > ?sample.]
> >
> > Two solutions:
> > 1. use the cex.axis argument to reduce the label size.
> > 2. check out the staxlab() function in the plotrix package.
> >
> > Peter Ehlers
> >
> >
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list