Re: [R] Separating point symbols and line types in a legend.

2016-02-12 Thread Greg Snow
One option is to call `legend` twice and do some manual positioning. This worked for me: plot(1:10) legend('topleft', lty=1:3, bty="n", legend=c('','','') ) legend('topleft', pch=c(20,8,1), bty="n", legend=c('clyde','irving','melvin'), inset=c(0.1,0)) You may need to fiddle with the amount of

Re: [R] Separating point symbols and line types in a legend.

2016-02-12 Thread Rolf Turner
Thanks Greg. Worked perfectly!!! cheers, Rolf On 13/02/16 09:22, Greg Snow wrote: One option is to call `legend` twice and do some manual positioning. This worked for me: plot(1:10) legend('topleft', lty=1:3, bty="n", legend=c('','','') ) legend('topleft', pch=c(20,8,1), bty="n",

[R] Separating point symbols and line types in a legend.

2016-02-11 Thread Rolf Turner
I would like to have a legend given in the manner legend("topleft",pch=c(20,8,1),lty=1:3,bty="n", legend=c("clyde","irving","melvin")) but with the point symbol *NOT* being superimposed on the line segments that are plotted. I saw that I can specify "merge=FALSE" in the call to