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@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.