Skip to contents

This function creates a faceted time series plot for all variables retrieved from the NOAA GHCN-Daily dataset, using comprehensive datatype information from ghcn::ghcn_daily_datatypes and a custom color palette.

Usage

visualize_ghcn_daily_data(data, station_name)

Arguments

data

A data frame as returned by get_ghcn_daily_data function.

station_name

Character. The name of the station (for plot title).

Value

A ggplot object with faceted plots for each variable in a single row.

Examples

if (FALSE) { # \dontrun{
data <- get_ghcn_daily_data(
  station_id = "USW00094728",
  start_date = "2022-01-01",
  end_date = "2022-12-31",
  token = "your_noaa_token_here"
)
plot <- visualize_ghcn_daily_data(data, "Central Park, NY")
print(plot)
} # }