[R]: Adding a line in the graph of 'plot()'
mcneney at stat.sfu.ca
Mon Nov 29 06:49:14 CET 2004
dvrecko at sfu.ca wrote:
>I'm looking for a way to add a line in a plot of a points that should lie
>along a particular line. Can I add a line to the 'plot()' function, maybe
>using 'abline()' so that the line is visible in the graph of 'plot()'? How?
It sounds like abline will do what you want.
>More generally, can I overlay plots over one another?
Try help("points"), help("lines"), etc. You should read the section on
graphical procedures in the manual "An Introduction to R" (as it
suggests in the posting guide, which you can access through the URL at
the bottom of your message).
>Simon Fraser University
>R-help at stat.math.ethz.ch mailing list
>PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
More information about the R-help