plot.maxnet: Create response plots for user selected predictors in a...

View source: R/plot.maxnet.R

plot.maxnetR Documentation

Create response plots for user selected predictors in a maxnet model

Description

Create response plots for user selected predictors in a maxnet model

Usage

## S3 method for class 'maxnet'
plot(
  x,
  vars = names(x$samplemeans),
  common.scale = TRUE,
  type = c("link", "exponential", "cloglog", "logistic"),
  ylab = NULL,
  plot = TRUE,
  mar = c(5, 5, 4, 2),
  N = 100,
  ...
)

Arguments

x

an object of class maxnet, i.e., a fitted model.

vars

character, vector of predictors for which response plots are desired.

common.scale

logical, if true, all plots use the same scale on the y-axis.

type

character, type of response to plot on y-axis.

ylab

character, label for y-axis

plot

logical, if TRUE render a plot, if FALSE return a list of data frames with variable and response columns

mar

numeric, 4 element value for margins (lines, in order of bottom, left, top, right) See par for details.

N

numeric, the number of intervals over which to sample the response

...

other arguments passed to plot or barplot

Value

if plot is FALSE then return a list of data frames that contain variable and response columns otherwise NULL invisibly

See Also

response.plot


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