[Rd] (PR#13553) wishlist boxplot

ripley at stats.ox.ac.uk ripley at stats.ox.ac.uk
Thu Mar 5 20:05:41 CET 2009


No objections from Martin or elsewhere, so I have now committed this.

Thanks, Uwe.

On Tue, 24 Feb 2009, Uwe Ligges wrote:

> [CCing Martin and Brian who had both done most svn commits of boxplot.R so 
> far]
>
>
> A very minor wishlist item that I should have already reported years ago:
>
> All the time when I need presentation/publication quality boxplots, I add 
> par(lend=1) in my code in order to suppress the ugly median line that does 
> not stop at the end of the box given the rounded line endings.
>
> Ugly example:
>
> boxplot(1:10, lwd=30)
>
>
>
> I'd like the following very minor change for boxplots:
>
> D:\Rcompile\recent\R\src\library\graphics\R>diff -u boxplot.R boxplot-new.R
> --- boxplot.R   2009-02-24 18:04:47.265625000 +0100
> +++ boxplot-new.R       2009-02-24 18:10:02.000000000 +0100
> @@ -148,7 +148,7 @@
>         ## Median
>         xysegments(xP(x, -wntch), stats[3L],
>                xP(x, +wntch), stats[3L],
> -               lty = medlty[i], lwd = medlwd[i], col = medcol[i])
> +               lty = medlty[i], lwd = medlwd[i], col = medcol[i], lend=1)
>         xypoints(x, stats[3L],
>              pch = medpch[i], cex = medcex[i], col= medcol[i], bg = 
> medbg[i])
>         ## Whiskers
>
>
>
> Best wishes,
> Uwe Ligges
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-devel mailing list