From ggrothendieck at gmail.com  Mon Mar 23 23:36:22 2009
From: ggrothendieck at gmail.com (Gabor Grothendieck)
Date: Mon, 23 Mar 2009 18:36:22 -0400
Subject: [Rd] matplot and lend="butt"
In-Reply-To: <49C80C6C.3050707@u-paris10.fr>
References: <49C80C6C.3050707@u-paris10.fr>
Message-ID: <971536df0903231536m7fef589are3b25bcba176b70c@mail.gmail.com>

It looks to be a bug.  Here is the code and notice that ... is passed to
plot (which plots the first series) but not to lines (which plots the rest):

    if (!add) {
        ii <- ii[-1]
        plot(x[, 1], y[, 1], type = type[1], xlab = xlab, ylab = ylab,
            xlim = xlim, ylim = ylim, lty = lty[1], lwd = lwd[1],
            pch = pch[1], col = col[1], cex = cex[1], bg = bg[1],
            ...)
    }
    for (i in ii) {
        lines(x[, i], y[, i], type = type[i], lty = lty[i], lwd = lwd[i],
            pch = pch[i], col = col[i], cex = cex[i], bg = bg[i])
    }

This is from 2.8.1 patched but I noticed the same thing in
"R version 2.9.0 Under development (unstable) (2009-03-02 r48041)"


On Mon, Mar 23, 2009 at 6:25 PM, Christophe Genolini
<cgenolin at u-paris10.fr> wrote:
> Hi the list,
>
> I am using matplot with the option lend="butt", but only the first line (the
> black) is printed correctly ?:
>
>> matplot(matrix(1:9,3),type="c",lwd=10,lty=1,lend="butt")
>
> Is it a bug ?
> I am using R2.8.1 under windows XP pack3.
>
> Christophe
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



[Rd] matplot and lend="butt"
Gabor Grothendieck