| plot.borg_result | R Documentation |
S3 plot method for borg_result objects from borg().
## S3 method for class 'borg_result'
plot(
x,
type = c("split", "risk", "temporal", "groups"),
fold = 1,
time = NULL,
groups = NULL,
title = NULL,
...
)
x |
A |
type |
Character. Plot type: |
fold |
Integer. Which fold to plot (for split visualization). Default: 1. |
time |
Column name or values for temporal plots. |
groups |
Column name or values for group plots. |
title |
Optional custom plot title. |
... |
Additional arguments passed to internal plot functions. |
Invisibly returns NULL. Called for plotting side effect.
set.seed(42)
data <- data.frame(
x = runif(100, 0, 100),
y = runif(100, 0, 100),
response = rnorm(100)
)
result <- borg(data, coords = c("x", "y"), target = "response")
plot(result) # Split visualization for first fold
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.