Creates highly customizable climate time-series visualizations with automatic seasonal detection.
Supports:
Custom line colors
Seasonal coloring
LOESS smoothing
Trend lines
Dark/light themes
Flexible date handling
Faceting
plot_station_timeseries(
df,
station,
var = "Tmin",
smooth = TRUE,
smooth_span = 0.25,
show_points = TRUE,
point_size = 2,
line_size = 1,
line_color = NULL,
smooth_color = NULL,
seasonal_colors = NULL,
use_season_colors = TRUE,
alpha = 0.8,
theme_style = c("minimal", "dark", "classic", "bw"),
date_breaks = "2 years",
date_labels = "%Y",
facet = FALSE,
show_trend = FALSE,
trend_color = "black",
title = NULL,
subtitle = NULL
)Climate dataframe.
Station name.
Climate variable to plot.
Logical. Add LOESS smoothing line.
LOESS span parameter.
Logical. Show points on plot.
Point size.
Line width.
Main line color.
Smoothing line color.
Named vector of colors.
Logical. Color points by season.
Transparency level.
Plot theme.
Options are:
"minimal",
"dark",
"classic",
"bw".
X-axis date interval.
Date label format.
Logical. Facet by season.
Logical. Add linear trend line.
Trend line color.
Plot title.
Plot subtitle.
A ggplot object.
if (FALSE) { # \dontrun{
plot_station_timeseries(
climate_data,
station = "Station_1",
var = "Tmin"
)
} # }