plot.nls | R Documentation |
nls
objectThree plots (selectable by the argument 'which') are currently available: a plot of residuals against fitted values (which = 1), a Normal Q-Q plot (which = 2) and a plot of predicted against expected (line) and observed (symbols). By default, the first graph is provided. As for the third graph, we can either plot all the data (type= "all") or the group means (type = "means"; the default)
## S3 method for class 'nls'
plot(x, type = "means",
xlim = NULL, res = 100,
which = 3, ...)
x |
an object of class 'nls' |
type |
it can be either "means" or "all". In the first case, the group means are plotted for the third graph. It is iìonly used when which = 3 |
xlim |
The limits for the x-axis (x1, x2) |
res |
For 'which = 3', it is the resolution of the fitted line |
which |
The type of graph: can be 1, 2 or 3 (see description) |
... |
additional graphical arguments |
It mimicks the behaviour of the function plot.lm()
Andrea Onofri
data(degradation)
mod <- nls(Conc ~ NLS.expoDecay(Time, a, k),
data = degradation)
plot(mod, which = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.