[R] Adding horizontal lines to Boxplot

Gabor Grothendieck ggrothendieck at gmail.com
Fri Oct 19 10:09:02 CEST 2007


It works for me.  Perhaps you could make the line thicker.

abline(h = 4, col = "red", lwd = 3)


On 10/19/07, Klaus Friis Østergaard <farremosen at gmail.com> wrote:
>
>
> 2007/10/19, Gabor Grothendieck <ggrothendieck at gmail.com>:
> > Try this:
> >
> > boxplot(1:10)
> > abline(h = 4, col = "red")
>
> Have tried it, I only get the boxplot, no red line.
>
> It works on the plotte images.
>
> That is why I asked the question here on the list.
>
>
>
> --
>
> Klaus F. Østergaard, <farremosen(at)gmail dot com>



More information about the R-help mailing list