# \donttest{
## Water quality examples
data(apacpwq)
dat_wq <- qaqc(apacpwq, qaqc_keep = c(0, 3, 5))
dat_wq <- SWMPr::setstep(dat_wq)
x <-
threshold_summary(dat_wq, param = 'do_mgl', parameter_threshold = 2
, threshold_type = '<', time_threshold = 2, summary_type = 'month'
, plot_title = TRUE)
# }
# \donttest{
y <-
threshold_summary(dat_wq, param = 'do_mgl', parameter_threshold = 2,
threshold_type = '<', time_threshold = 2, summary_type = 'season',
season_grps = list(c(1,2,3), c(4,5,6), c(7,8,9), c(10, 11, 12)),
season_names = c('Winter', 'Spring', 'Summer', 'Fall'),
season_start = 'Winter',
plot_title = TRUE)
## Nutrient examples
dat_nut <- qaqc(apacpnut, qaqc_keep = c(0, 3, 5))
x <-
threshold_summary(dat_nut, param = 'chla_n',
parameter_threshold = 10,
threshold_type = '>', summary_type = 'month',
plot_title = TRUE)
y <-
threshold_summary(dat_nut, param = 'chla_n', parameter_threshold = 10,
threshold_type = '>', summary_type = 'season',
season_grps = list(c(1,2,3), c(4,5,6), c(7,8,9), c(10, 11, 12)),
season_names = c('Winter', 'Spring', 'Summer', 'Fall'),
season_start = 'Winter', plot_title = TRUE)
z <-
threshold_summary(dat_nut, param = 'chla_n', parameter_threshold = 10,
threshold_type = '>', summary_type = 'year',
plot_title = TRUE, plot = TRUE)
# }
Run the code above in your browser using DataLab