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

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

John Sorkin <jsorkin <at>> 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 mailing list PLEASE do read the posting guide 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 Please read the posting guide before posting to the list.

list of date sections of archive