legend of type "b"

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

legend of type "b"

Thomas Steiner
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)

Thanks,
Thomas

______________________________________________
[hidden email] 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 | Threaded
Open this post in threaded view
|

Re: legend of type "b"

Uwe Ligges


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
>
> ______________________________________________
> [hidden email] 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.

______________________________________________
[hidden email] 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.