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
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",
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
3 matches
Mail list logo