[R] legends in a plot

Bingshan Li bli1 at bcm.tmc.edu
Fri Sep 22 22:04:01 CEST 2006


Hi there,

I have the following plot. The circles and the line do not cross in  
the main plot. But in the legend, the circle and the line cross. I am  
wondering if there is a way to make the legend look like the plot  
without crossing. I looked around but did not find a way to do that.  
Is it doable?

plot(x,x^1.5, pch=1, lty=1, type='b')
legend(1,25, legend="hello",pch=1, lty=1)

Thanks and have a great weekend!



More information about the R-help mailing list