Skip to content
Prev 179221 / 398506 Next

Producing a legend successfullly

Steve Murray <smurray444 at hotmail.com> wrote
You've got mismatched parentheses here, with two ( and only one ).

I suspect you added one at the end, making r look at lty= and col = as part of the legend text.

You want

legend(80,1150, c("Simulation", "Observation"), lty=1:2, col=2:3)

HTH

Peter

Peter L. Flom, PhD
Statistical Consultant
www DOT peterflomconsulting DOT com