ch_axis_doy: Generates the x axis beginning on specified day of year

View source: R/ch_axis_doy.R

ch_axis_doyR Documentation

Generates the x axis beginning on specified day of year

Description

Generates an axis for day of year or day of water year; used by ch_regime_plot. Obtaining the day of water year needs to be done separately.

Usage

ch_axis_doy(wyear = 1)

Arguments

wyear

Month of beginning of water year, wyear = 1 (the default) for calendar year, wyear = 10 to start October 1.

Value

Plots a water year axis on a standard R plot

Author(s)

Paul Whitfield

See Also

ch_regime_plot

Examples

a <- seq(1, 365)
b <- runif(365)
plot(a, b,  type = "p", xlab = "", xaxt = "n")
ch_axis_doy(wyear = 10) # starts in October

CSHS-hydRology/CSHShydRology documentation built on Aug. 18, 2022, 4:44 p.m.