marsRainfallPlot: Plot hyetograph

View source: R/mars_plotting_functions.R

marsRainfallPlotR Documentation

Plot hyetograph

Description

Return hyetograph of events processed by marsDetectEvents

Usage

marsRainfallPlot(dtime_est, rainfall_in, event, reverse_y = FALSE)

Arguments

dtime_est

vector, POSIXct datetimes representing a single rain event

rainfall_in

vector, num, rainfall in inches for that rain event

event

chr, label for the hyetograph for what rain gage the data came from

reverse_y

logical, whether the Y axes should be reversed

Value

Output is a ggplot2 object of the hyetograph.

See Also

mutate, filter

Examples

gage_temp <- dplyr::mutate(marsSampleRain, 
  event_id = marsDetectEvents(dtime_est = marsSampleRain$dtime_est, 
  rainfall_in = marsSampleRain$rainfall_in, 
  iet_hr = 6, mindepth_in = 0.10)) %>% dplyr::filter(event_id == 2)
  
marsRainfallPlot(dtime_est = gage_temp$dtime_est, 
  rainfall_in = gage_temp$rainfall_in, event = 2)   

taywater/pwdgsi documentation built on March 14, 2024, 7:24 a.m.