View source: R/mars_plotting_functions.R
marsRainfallPlot | R Documentation |
Return hyetograph of events processed by marsDetectEvents
marsRainfallPlot(dtime_est, rainfall_in, event, reverse_y = FALSE)
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 |
Output is a ggplot2 object of the hyetograph.
mutate
, filter
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.