[R] [FORGED] Suppress horizontal mean line in beanplot()
Paul Murrell
paul at stat.auckland.ac.nz
Tue Feb 13 19:48:08 CET 2018
Hi
Does this do the trick ... ?
library(beanplot)
beanplot(count ~ spray, data = InsectSprays)
library(gridGraphics)
grid.echo()
grid.remove("abline", grep=TRUE)
Paul
On 14/02/18 07:31, Samuel Knapp wrote:
> Hi,
>
> I would like to use the beanplot() function from the beanplot package.
> Unfortunately, I can't find out how to suppress the dashed horizontal
> line, that shows the overall mean.
>
> In the help I've found the argument "overallline", but it only allows
> for "mean" or "median" .
>
> I have tried overallline = F, overallline="n", and overallline="", but
> without success.
>
> Strangely, I could also not find any suggestions on the internet.
>
> Does anybody know how to do this?
>
> Thanks,
>
> Samuel
>
> ## Example code using the dataset InsectSprays from datasets package
>
> library(beanplot)
>
> beanplot(count ~ spray, data = InsectSprays)
>
> # How to remove the dashed horizonal line?
>
>
>
--
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
Auckland
New Zealand
64 9 3737599 x85392
paul at stat.auckland.ac.nz
http://www.stat.auckland.ac.nz/~paul/
More information about the R-help
mailing list