Create response plots for each predictor in a maxnet model
# S3 method for 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), ...)
an object of class maxnet
, i.e., a fitted model.
vector of predictors for which response plots are desired.
if true, all plots use the same scale on the y-axis.
type of response to plot on y-axis.
label for x-axis.
label for y-axis.
a fitted model, must be of type maxnet
if default values used for other arguments.
name of variable to be plotted.
sample means (or majorities for factors) for predictors; predictors other than v
are given these values.
minimum value of v
; determines range of x-axis
maximum value of v
; determines range of x-axis
if v
is a factor, determines levels to be plotted
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)
.