Creates a ggplot2 visualization of detected risks from a BORG validation.
Arguments
- object
A
BorgRiskobject fromborg_inspect()orborg()in validation mode.- max_risks
Integer. Maximum number of risks to display. Default: 10.
- show_fixes
Logical. If TRUE (default), annotate each risk with a suggested fix from
borg_assimilate()or manual action. If FALSE, show the risk description instead.- ...
Additional arguments (currently unused).
Examples
# \donttest{
if (requireNamespace("ggplot2", quietly = TRUE)) {
data <- data.frame(x = 1:100, y = 101:200)
result <- borg_inspect(data, train_idx = 1:60, test_idx = 51:100)
ggplot2::autoplot(result)
}
# }