Hi there,

I plot a simple plot with the following code:

plot (rnorm(1:10), type = "b")
legend("top", "test", lty = 1, pch = 21)

The result is something wired for the line crosses the point in the legend while the line does not cross the point in the main plot.

Is there possibility to draw the legend that line does not cross the point, i.e., like the pattern in the main plot?

Any help is really appreciated.

Best regards,
Jinsong

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to