% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pep_second_events.R
\name{plot.second_events}
\alias{plot.second_events}
\title{Plot Method for Second Events Detection}
\usage{
\method{plot}{second_events}(
  x,
  type = c("overview", "timeline", "seasonal", "map"),
  scale = c("absolute", "relative"),
  from_year = NULL,
  ...
)
}
\arguments{
\item{x}{A \code{second_events} object}

\item{type}{Character. Plot type: "overview", "timeline", "seasonal", "map"}

\item{scale}{Character. Scale for y-axis in timeline/overview plots:
\describe{
\item{"absolute"}{(Default) Show raw counts of second events per year.}
\item{"relative"}{Show proportion of second events relative to total
observations per year. This accounts for varying data availability
over time and reveals whether second events are becoming proportionally
more common.}
}}

\item{from_year}{Integer. If specified, only show data from this year onwards
in timeline and overview plots. Useful for focusing on recent trends.
Default is \code{NULL} (show all years).}

\item{...}{Additional arguments}
}
\value{
A ggplot object (invisibly)
}
\description{
Plot Method for Second Events Detection
}
