[R] SOLVED Legend symbols (line, points) in one column.

Kenneth Roy Cabrera Torres krcabrer at une.net.co
Mon Oct 17 15:18:27 CEST 2011


Thank you very much for your answer.

It works just as I want!.

Kenneth

El sáb, 15-10-2011 a las 20:39 +0530, Deepayan Sarkar escribió:
> On Fri, Oct 14, 2011 at 10:02 AM, David Winsemius
> <dwinsemius at comcast.net> wrote:
> > Legends are built in columns. You need to find a graphics symbol to put in
> > the "points" column or you need to find something that the lines paramater
> > will turn into a dot (and I'm not sure what that might be.)
> 
> A 'lines' component can actually contain points as well, with type="p", as in
> 
> xyplot(y~x,group=type,
>        type=c("p","l"),
>        key=list(space="right",text=list(c("Data","Model")),
>                 lines=list(lwd = 2, cex = 1.5, pch = 19,
>                            type = c("p", "l"))),
>        par.settings=confMisc1,
>        distribute.type=TRUE,
>        data=dataT)
> 
> -Deepayan



More information about the R-help mailing list