Dear R Users,
If we issue simple plot command in R we don't get legend of the plot
automatically.

For example, following lines plots two curves, but to write a legend of
these two curves there is no simple command. I checked with ?legend  but
it seems bit complicated for me. Does anyone know how to get a legend in a
simple way for following R plot.
Thanks, Yogesh



>plot (x,y, type='n', ann=FALSE)
>lines(x,y,col=1,lty="solid")
>points(x,y,pch=16)
>
>points (x,y1, type='n', ann=FALSE)
>lines(x,y1,col=1,lty="solid")
>points(x,y1,pch=21)



-

	[[alternative HTML version deleted]]

