Re: [R] Overlay two plots on the same device with axes having the same scale.

From: Ben Bolker <bolker_at_ufl.edu>
Date: Mon, 24 Nov 2008 03:03:16 +0000 (UTC)

John Sorkin <jsorkin <at> grecc.umaryland.edu> writes:

> I have crated a file containing data with x and y
> values and have plotted the data using the output of gam. I
> would like to overlay an x,y plot of the data on top of
> the line returned by gam.

   Why not plot the gam fit first and then use points(x,y) to add the original data to the plot?

  Ben Bolker



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. Received on Mon 24 Nov 2008 - 03:10:45 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 24 Nov 2008 - 04:30:28 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive