[R] Line of best
Ben Bolker
bolker at ufl.edu
Wed Aug 20 19:23:46 CEST 2008
Altaweel, Mark R. <maltaweel <at> anl.gov> writes:
> I have a scatter plot, with an equation that best fits
the scatter plot expressed as: 1/x^.6. I know for
> normal linear regression lines you can use the abline() command;
however, since my best fit line is not
> linear, how can I draw my line on the scatter plot in a similar
fashion to abline().
curve() or predict(): see
http://wiki.r-project.org/rwiki/doku.php?id=tips:graphics-misc:plotpredicted
More information about the R-help
mailing list