[R]: Adding a line in the graph of 'plot()'

Brad McNeney mcneney at stat.sfu.ca
Mon Nov 29 06:49:14 CET 2004


dvrecko at sfu.ca wrote:

>Hello.
>
>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).

Brad

>Thanks.
>
>Dean Vrecko
>Simon Fraser University
>
>______________________________________________
>R-help at stat.math.ethz.ch mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>  
>




More information about the R-help mailing list