glimpse_daily_data: glimpse_daily_data

View source: R/glimpse_daily_data.R

glimpse_daily_dataR Documentation

glimpse_daily_data

Description

Visual presentation of daily data to spot missing values.

Usage

glimpse_daily_data(
  env_data,
  na.color = "red",
  low_color = "blue",
  high_color = "green",
  tidy_env_data = FALSE
)

Arguments

env_data

a data frame of daily sequences of environmental data as columns and years as row names. Each row represents a year and each column represents a day of a year. Alternatively, env_data could be a tidy data with three columns, i.e. Year, DOY and third column representing values of mean temperatures, sum of precipitation etc. If tidy data is passed to the function, set the argument tidy_env_data to TRUE.

na.color

color to use for missing values

low_color

colours for low end of the gradient

high_color

colours for high end of the gradient

tidy_env_data

if set to TRUE, env_data should be inserted as a data frame with three columns: "Year", "DOY", "Precipitation/Temperature/etc."

Examples

library(dendroTools)
data("LJ_daily_temperatures")
# glimpse_daily_data(env_data = LJ_daily_temperatures,
#tidy_env_data = FALSE, na.color = "white")

data("LJ_daily_precipitation")
# glimpse_daily_data(env_data = LJ_daily_precipitation,
#   tidy_env_data = TRUE, na.color = "white")

jernejjevsenak/dendroTools documentation built on April 23, 2024, 6:01 p.m.