Description Usage Arguments Value
View source: R/calibration_plot.R
Returns a ggplot2
object of calibration plot
1 2 3 | calibration_plot(x, y, bins = 10, smooths = F, conf = T,
abline = F, point_shape = 16, point_size = 3, span = 0.9,
errorbar_width = 0.025, errorbar_size = 0.8)
|
x |
Vector of know labels on the test set |
y |
Vector of probability predictions on the test set |
bins |
If a single number this indicates the number of splits of the data are used to create the
plot. By default, |
smooths |
set this to TRUE if you want to draw a smoothing line using |
conf |
whether to show 95% confidence bands, by default it is |
point_shape |
the shape of point, see |
point_size |
the size of point, by default it is 3 |
span |
the parameter which controls the degree of smoothing |
errorbar_width |
the width of the whiskers, by default 0.025 |
errorbar_size |
the size of the whiskers, by default 0.8 |
aline |
whether to connect these points when |
ggplot2 object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.