| plot.dormancy | R Documentation |
Visualization methods for dormancy analysis results. Creates informative plots showing dormant patterns, trigger regions, and risk landscapes.
## S3 method for class 'dormancy'
plot(x, type = "overview", ...)
## S3 method for class 'dormancy_map'
plot(x, type = "overview", ...)
x |
An object of class "dormancy", "dormancy_map", "dormancy_depth", "dormancy_risk", or "awakening". |
type |
Character. Type of plot to generate:
|
... |
Additional arguments passed to plot functions. |
Invisibly returns the plot data.
set.seed(42)
n <- 500
x <- rnorm(n)
z <- sample(c(0, 1), n, replace = TRUE)
y <- ifelse(z == 1, 0.8 * x + rnorm(sum(z), 0, 0.3), rnorm(n))
data <- data.frame(x = x, y = y, z = factor(z))
result <- dormancy_detect(data, method = "conditional")
plot(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.