Description Usage Arguments Value Examples
Useful for plotting fitted curves.
1 | get_curves(object, x_range = NULL, logrange = TRUE, npoint = 100)
|
object |
An model object with a |
x_range |
An optional 2-element numeric vector giving the x-range. If 'NULL', will calculate range from 'object'. |
logrange |
Logical. If TRUE increments are in log space. |
npoint |
Numeric. The number of increments in the x range. |
A data frame with predicted x and y values pulled from teh model call.
1 2 3 4 5 6 7 | fit_drc <- drc::drm(disp~wt, data=mtcars, fct=drc::LL.4())
curve_drc <- get_curves(fit_drc, range(mtcars$wt), logrange = FALSE)
plot(wt~disp, data=curve_drc) # names come from model call
fit_lm <- lm(disp~wt, data = mtcars)
curve_lm <- get_curves(fit_lm, range(mtcars$wt), logrange = FALSE)
plot(wt~disp, data=curve_lm)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.