# NOT RUN {
# Run if HYDAT database has been downloaded (using tidyhydat::download_hydat())
if (file.exists(tidyhydat::hy_downloaded_db())) {
# Plot missing dates using a data frame and data argument with defaults
flow_data <- tidyhydat::hy_daily_flows(station_number = "08NM116")
plot_missing_dates(data = flow_data)
# Plot missing dates using station_number argument with defaults
plot_missing_dates(station_number = "08NM116")
# Plot missing dates for water years starting in October
plot_missing_dates(station_number = "08NM116",
water_year_start = 9)
# Plot missing dates for 7-day flows for July-September months only
plot_missing_dates(station_number = "08NM116",
roll_days = 7,
months = 7:9)
}
# }
Run the code above in your browser using DataLab