Display the statistic of interest across various threshold values, possibly with confidence intervals. Currently only works when varying thresholds relative to one or two variables.
# S3 method for S3sensitivity
plot(x, plot = TRUE, ...)# S3 method for S3sensitivity
autoplot(
object,
col = NULL,
ci = TRUE,
band = TRUE,
label = "Threshold for",
position = NULL,
size.line = 1,
size.point = 1.75,
size.ci = 0.5,
alpha = 0.1,
...
)
a ggplot2 object
[logical] should the graph be displayed in a graphical window
not used. For compatibility with the generic method.
output of the sensitivity method
[character vector] color used to identify the thresholds relative to a second variable.
[logical] should the confidence intervals be displayed?
[logical] should the simulatenous confidence intervals be displayed?
[character] text used before the name of the variables in the legend.
relative position of the error bars for a given x value. Can for instance be position_dodge(width = 5)
.
[numeric] width of the line connecting the point estimates.
[numeric] size of the point representing the point estimates.
[numeric] width of the lines representing the confidence intervals.
[numeric] transparency for the area representing the simultaneous confidence intervals.
The autoplot
and plot
methods are very similar. The main difference is that the former returns a ggplot2 object whereas the later automatically display the figure in a graphical window and returns an (invible) list with the plot and the data.