Description Usage Arguments Details Value Author(s) See Also Examples
Assess variability within each season for a single year
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
swmpr_in |
input swmpr object |
... |
additional arguments passed to other methods. See |
param |
chr string of variable to plot |
target_yr |
numeric, the target year that should be compared against the historic range. If target year is not specified then the dot will not be plotted. |
criteria |
numeric, a numeric criteria that will be plotted as a horizontal line |
free_y |
logical, should the y-axis be free? Defaults to |
log_trans |
logical, should y-axis be log? Defaults to |
converted |
logical, were the units converted from the original units used by CDMO? Defaults to |
criteria_lab |
chr, label for the threshold criteria defined in |
plot_title |
logical, should the station name be included as the plot title? Defaults to |
plot |
logical, should a plot be returned? Defaults to |
This function summarizes average daily values, average daily minimums/maximums, and absolute minimums/maximums across user-defined seasons for a target year (target_yr
).
The user also has the option to add a threshold hold line using the criteria
argument. Typically, this value is a water quality threshold, which is why criteria_lab
defaults to 'WQ Threshold'
. However, the user has the option to specify any other type of threshold they wish. when doing so, the value for criteria_lab
should be changed accordingly.
Returns a ggplot
object
Julie Padilla
ggplot
, assign_season
, y_labeler
1 2 3 4 5 6 7 | ## get data, prep
data(elksmwq)
dat <- elksmwq
dat <- qaqc(elksmwq, qaqc_keep = c('0', '3', '5'))
do_plt <- annual_range(dat, param = 'do_mgl', target_yr = 2012)
do_plt <- annual_range(dat, param = 'do_mgl', target_yr = 2012, criteria = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.