[R] how to avoid grid overlapping in a boxplot
R. Michael Weylandt
michael.weylandt at gmail.com
Thu Mar 22 17:50:38 CET 2012
It's a bit of a hack, but you could just redraw the boxplot on top of
the grid lines:
x <- rnorm(50)
boxplot(x)
grid()
boxplot(x, add = TRUE)
Michael
On Thu, Mar 22, 2012 at 12:08 PM, maxbre <mbressan at arpa.veneto.it> wrote:
> Given the following chart: i.e. a boxplot with a grid
>
> boxplot(x~y)
> grid(nx=NA,ny=NULL)
>
> my question: how to avoid the overlapping of boxes (and whiskers) by grid
> lines?
>
> thank you for any help pointing me in the right direction
>
> max
>
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/how-to-avoid-grid-overlapping-in-a-boxplot-tp4495955p4495955.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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