[R] Median line with stripchart

Uwe Ligges ligges at statistik.tu-dortmund.de
Wed Jun 13 18:24:29 CEST 2012



On 13.06.2012 17:57, Luigi wrote:
> Dear all,
>
> I would like to ask if it possible to draw a median line in a Stripchart,
> either using the built-in STRIPCHART function or with another package.
>
> I was expecting stripchart() to work more or less like boxplot(), but I
> couldn't find an easy way to draw a mean or median line, neither I found
> this option in other packages.
>
> Could somebody help?

???

What about:

x <- rnorm(100)
stripchart(x)
abline(v=median(x))


Uwe Ligges



>
> Best regards,
>
>
>
> Luigi Marongiu, MSc
>
>
>
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> 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