Graphical display of the bias or type 1 error
for the output of calibrateType1
.
# S3 method for calibrateType1
autoplot(
object,
type = "bias",
plot = TRUE,
color.threshold = "red",
type.bias = "absolute",
alpha = 0.05,
nrow.legend = NULL,
name2label = NULL,
color = NULL,
keep.method = NULL,
...
)
An list containing:
plot: a ggplot object.
data: the dataset used to generate the ggplot object.
output of calibrateType1
.
[character] if type equals "bias"
the bias will be displayed.
Otherwise if it equals "type1error"
the type 1 error will be displayed.
[logical] should the plot be displayed?
[character] the color for the line representing the expected value(s).
[character] if type.bias equals "absolute"
the absolute bias will be used.
Otherwise if it equals "relative"
the relative bias will be used.
Only relevant when type equals "bias"
.
[numeric, 0-1] the significance threshold to consider.
Only relevant when type equals "type1error"
.
[integer, >0] the number of rows for the legend.
Only relevant when type equals "type1error"
.
[named character vector] the label for the legend.
The vector should contain the method names (see details).
Only relevant when type equals "type1error"
.
[character vector] a vector of colours to be used to color the lines.
Only relevant when type equals "type1error"
.
[character vector] the methods names for which the type 1 error should be displayed.
Only relevant when type equals "type1error"
.
[internal] Only used by the generic method.
Method names:
p.Ztest
p.Satt
p.KR
p.robustZtest
p.robustSatt
p.robustKR