[R] Controling width of boxes in boxplots

From: Marcin Kozak <nyggus_at_gmail.com>
Date: Fri, 15 Feb 2008 13:30:00 +0100


Hi,

I want to add boxplots to a scatterplot:

plot(x,y, xlim=c(80,120),ylim=c(80,120)) boxplot(y,add=TRUE,at=118)
boxplot(x,add=TRUE,at=118,horizontal=TRUE)

How can I control the width of the boxes (say, I'd like them to be of width 3 in the variables' scales). I've tried the "width" parameter but failed.

Thanks in advance,
Marcin



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. Received on Fri 15 Feb 2008 - 12:34:21 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 15 Feb 2008 - 16:30:14 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive