Dear Svempa,
See ?legend.
In this case, you could have discovered the legend function via
apropos("legend") or help.search("legend").
I hope this helps,
John
--------------------------------
John Fox, Professor
Department of Sociology
McMaster University
Hamilton, Ontario, Canada L8S 4M4
905-525-9140x23604
http://socserv.mcmaster.ca/jfox
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Svempa
> Sent: January-25-08 6:56 AM
> To: r-help at r-project.org
> Subject: [R] Labeling different kinds of dots
>
>
> I have one graph with two linear plots, one where the points are marked
> with
> a triangle and the others marked with a dot. How do I label them in a
> legend
> for example, comparable to what you automatically get in Excel (sorry
> for
> the comparison people), so you know which type of point corresponds to
> which
> function?
> --
> View this message in context: http://www.nabble.com/Labeling-different-
> kinds-of-dots-tp15086299p15086299.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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.