[R] boxplot, vertical position of x-axis labels

David Winsemius dwinsemius at comcast.net
Tue Mar 16 15:27:08 CET 2010

On Mar 16, 2010, at 9:37 AM, Kay Cichini wrote:

> hello,
> i can't figure out how to change the vertical position of my x axis  
> labels..
> boxplot(c(1:12)~c(rep("1",6),rep("2",6)),at=c(1,2),
> col=c(0,"grey"),las=1,xaxt="n")
> ### i put paragraphs in the x-labels because of limited horizontal  
> space

Try using the padj argument (and it bothered me to use the <cr>'s  
rather than "\n", so I modified the labels argument as well):


> ...the labels are one line above usual position and cross the  
> tickmarks and
> i don't know how to get around this.
> can anyone help with this?
> thanks in advance.

David Winsemius, MD
West Hartford, CT

More information about the R-help mailing list