[R] boxplot(): formating median in another linethickness?

Uwe Ligges ligges at statistik.uni-dortmund.de
Sun Jul 21 16:04:19 CEST 2002



Stephan Holl wrote:
> 
> Dear guRus,
> I want to do some boxplots, but the median sould appear in another
> line-thickness and another color.
> I do not know, what to do in order to realise my wishes.
> 
> Sorry for that question, but I am new to R.

You have to adapt the function bxp() for your purposes:
If you use fix(bxp), you can change the color in lines 27 and 38.
It's a nice programming exercise to add an argument to boxplot() that
colors the median differently from the other borders (and thus passes
the argument to bxp() appropriately).

Uwe Ligges
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list