The goal of HERON is to provide a suite of helpful supplementary
functions for workflows involving the EGRET
and SiZer
R packages.
You can install the development version of HERON from GitHub with:
# install.packages("devtools")
devtools::install_github("lter/HERON")
Here are the functions currently included in HERON
:
-
egret_report
: Generate a coarse PDF report containing plots ofEGRET
function outputs. Useful for quickly characterizing a suite of patterns in the data though allows little aesthetic customization and is thus best used only for this preliminary “first look” -
egret_trends
: Calculates flow normalized concentration and flux usingEGRET::tableChangeSingle
and exports a single data object containing both datasets (includes a column named “Metric” to help users split the objects post hoc)
-
sizer_slice
: Extract theSiZer
-identified slope for a specified bandwidth and returns this information as a dataframe -
sizer_aggregate
: AggregateSiZer
-identified slope types across all bandwidths and return this information as a dataframe -
sizer_plot
: Creates base R plot ofSiZer
object with horizontal lines at specified bandwidths -
id_slope_changes
: Migrate slope changes identified bySiZer::SiZer
information into the supplied data object -
id_inflections
: Migrate inflection points implied bySiZer::SiZer
information (“implied” because it only identifies slope changes to/from flat slopes) into the supplied data object -
sizer_ggplot
: Createsggplot2
plot of trendline with inflection points and/or slope changes identified bySiZer
included as vertical lines. Also allows specification of type of trendline to fit to data -
sizer_lm
: Fits linear regressions on each “chunk” of the trendline (i.e., sections of trendline that share a common slope as identified byid_inflections
orid_slope_changes
)
hydro_day
: Accepts a calendar date and converts it into an equivalent “hydro day”. Allows user to specify the first month of the hydrologic year as this may differ by hemisphere