ggResponse: Partial dependence plot by ggplot

Description Usage Arguments Author(s)

View source: R/ggResponse.R

Description

This function can be used to plot a partial dependence plot for any model that can predict on data.frames.

Usage

1
2
3
4
5
6
7
8
ggResponse(
  models,
  covariates,
  colPlot = 3,
  responseName = "Prediction",
  index = 2,
  ...
)

Arguments

models

a model object

covariates

the covariates used in model fitting, a raster or data.frame

colPlot

integer. The number of colums for plotting

responseName

character. the name for y axes

index

integer. The columns used for prediction. This relates to the factor level for classification.

...

other arguments e.g. type = 'response' in GLMs or type = 'prob' in randomForest or the number of trees in BRT/GBM.

Author(s)

Roozbeh Valavi


rvalavi/myspatial documentation built on May 15, 2021, 12:14 a.m.