plot.dormancy: Plot Methods for Dormancy Objects

View source: R/plot.R

plot.dormancyR Documentation

Plot Methods for Dormancy Objects

Description

Visualization methods for dormancy analysis results. Creates informative plots showing dormant patterns, trigger regions, and risk landscapes.

Usage

## S3 method for class 'dormancy'
plot(x, type = "overview", ...)

## S3 method for class 'dormancy_map'
plot(x, type = "overview", ...)

Arguments

x

An object of class "dormancy", "dormancy_map", "dormancy_depth", "dormancy_risk", or "awakening".

type

Character. Type of plot to generate:

  • "overview" - General overview of results

  • "patterns" - Focus on detected patterns

  • "risk" - Risk-focused visualization

  • "timeline" - Time-based visualization (if applicable)

...

Additional arguments passed to plot functions.

Value

Invisibly returns the plot data.

Examples

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)


dormancy documentation built on March 16, 2026, 5:09 p.m.