plot.maxnet {maxnet} | R Documentation |
Response plots for maxnet models
Description
Create response plots for each predictor in a maxnet model
Usage
## 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), ...)
Arguments
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 |
Value
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)
.
Author(s)
Steven Phillips