plotfit {NRAIA} | R Documentation |
Extract the original data from a fitted model and plot these data along with a smooth curve of the fitted model function. The fitted model must be for one covariate only.
plotfit(fm, ...) ## S3 method for class 'nls': plotfit(fm, ...)
fm |
A fitted model object, typically a nls fitted model. |
... |
Arguments to be passed to xyplot
or panel.curve . |
A lattice object.
fm1 <- nls(rate ~ conc/(K + conc), Puromycin, c(K = 0.05), subset = state == "treated", alg = "plinear") plotfit(fm1, from = 0)