Description Usage Arguments Value Author(s)
Create response plots for each predictor in a maxnet model
1 2 3 4 5 6 | ## S3 method for class 'maxnet'
plot(x, vars = names(x$samplemeans), common.scale = T,
type = c("link", "exponential", "cloglog", "logistic"), ylab = NULL, ...)
response.plot(mod, v, type, mm=mod$samplemeans, min=mod$varmin[v], max=mod$varmax[v],
levels=unlist(mod$levels[v]), plot=T, xlab=v, ylab=tools::toTitleCase(type), ...)
|
x |
an object of class |
vars |
vector of predictors for which response plots are desired. |
common.scale |
if true, all plots use the same scale on the y-axis. |
type |
type of response to plot on y-axis. |
xlab |
label for x-axis. |
ylab |
label for y-axis. |
mod |
a fitted model, must be of type |
v |
name of variable to be plotted. |
mm |
sample means (or majorities for factors) for predictors; predictors other than |
min |
minimum value of |
max |
maximum value of |
levels |
if |
plot |
if false, don't draw the plot |
... |
passed to plot or barplot |
If plot
is false, return a vector of y values, one for each factor or 100 ranging from min - 0.1*(max-min)
to max + 0.1*(max-min)
.
Steven Phillips
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.