Learn R Programming

SPOTMisc (version 1.19.52)

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

Value

plotly visualization (based on plot_ly)

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

See Also

plotFunction, plotData