response.plot: Compute and plot a single response variable

View source: R/response.plot.R

response.plotR Documentation

Compute and plot a single response variable

Description

Compute and plot a single response variable

Usage

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,
  ...
)

Arguments

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 TRUE render the plot (or barplot) if FALSE then compute the response and return a data.frame

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

Value

if plot is FALSE a data frame that contains variable and response columns otherwise NULL invisibly

See Also

plot.maxnet


mrmaxent/maxnet documentation built on Jan. 12, 2023, 8:20 a.m.