[R] (no subject)

Jim Lemon jim at bitwrit.com.au
Wed Mar 31 12:09:08 CEST 2010


On 03/31/2010 03:15 PM, Roslina Zakaria wrote:
>
>
>
>
>
>
> Hi r-users,
>
> I would like to display my legend with fill box and line symbol.  The first color will be in the box and the second colour will just be a line.
>
> legend("topright", c("observed","gamma sum fit"), col= c("greenyellow","red"),pch=c(15, NA),lty = c(0,1),lwd=2)
>
Hi Rosalina,
I think what you're trying to do requires the argument:

pt.cex=2

in the call to legend

Jim



More information about the R-help mailing list