View source: R/response.plot.R
response.plot | R Documentation |
Compute and plot a single response variable
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), N = 100, ... )
mod |
a fitted model, must be of type maxnet if default values used for other arguments. |
v |
charvacter, name of variable to be plotted. |
type |
character, type of response to plot on y-axis. |
mm |
numeric, sample means (or majorities for factors) for predictors; predictors other than v are given these values. |
min |
numeric, minimum value of v; determines range of x-axis |
max |
numeric, maximum value of v; determines range of x-axis |
levels |
vector, if v is a factor, determines levels to be plotted |
plot |
logical, if |
xlab |
character, label for x-axis |
ylab |
character, label for y-axis |
N |
numeric, the number of intervals over which to sample the response |
... |
other argument passed to plot or barplot |
if plot
is FALSE
a data frame
that contains variable and response columns otherwise NULL
invisibly
plot.maxnet
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.