plot_sensitivity: Sensitivity plot of a model

View source: R/spotPlot.R

plot_sensitivityR Documentation

Sensitivity plot of a model

Description

mlrTools

Usage

plot_sensitivity(
  object,
  s = 100,
  xlab = paste("x", 1:ncol(object$x), sep = ""),
  ylab = "y",
  type = "best",
  agg.sample = 100,
  agg.fun = mean,
  ...
)

Arguments

object

the result list returned by spot, importantly including a modelFit, and the data x, y.

s

number of samples along each dimension.

xlab

a vector of characters, giving the labels for each of the two independent variables.

ylab

character, the value of the dependent variable predicted by the corresponding model.

type

string describing the type of the plot: "best" (default) shows sensitivity around optimum, "contour", "persp" (perspective), or "persp3d" plot. Note that "persp3d" is based on the plotly package and will work in RStudio, but not in the standard RGui.

agg.sample

number of samples for aggregation type (type="agg").

agg.fun

function for aggregation (type="agg").

...

additional parameters (currently unused).

Value

plotly visualization (based on plot_ly)

See Also

plotFunction, plotData


SPOTMisc documentation built on Sept. 5, 2022, 5:06 p.m.