[R] legend of type "b"

Uwe Ligges ligges at statistik.uni-dortmund.de
Sat Nov 10 13:44:34 CET 2007



Thomas Steiner wrote:
> How can I choose the (line/plot) type "b"oth in the legend?
> 
> plot(1:5,rnorm(1:5),type="b")
> legend("topright","random",lty=10)


For example by specifying "pch", e.g.:
  legend("topright","random",lty=10, pch=1)

Uwe Ligges



> Thanks,
> Thomas
> 
> ______________________________________________
> R-help at 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.



More information about the R-help mailing list