Recent Releases of fasstr

fasstr - fasstr 0.5.3

Updated: 23 Sep 2024

Bug fixes:

  • fixed an error occurring with method-of-moments frequency analyses with fitdistrplus version 1.2-1. Internal fasstr code has been adjusted to the fitdistrplus changes.

- R
Published by jongoetz over 1 year ago

fasstr - fasstr 0.5.2

Updated: 27 Mar 2024 Bug fixes:

  • added workaround for issue with scales::cutshortscale() bug caused by scales 1.3.0. https://github.com/r-lib/scales/issues/413. Fix works with previous and new versions of scales.

- R
Published by jongoetz almost 2 years ago

fasstr - fasstr 0.5.1

Updated: 20 Mar 2023

Bug fixes:

  • fixed datevalidate bug (issue#93) where functions could not assign date class when data frame was all NA (eg. Calcannual_lowflows() for a seasonal station with no complete years).
  • fixed addseasons bug (issue#94) where leftjoin was not working properly
  • updated some dplyr and ggplot2 coding with recent updates in those dependencies

- R
Published by jongoetz almost 3 years ago

fasstr - fasstr 0.5.0

Updated: 19 Oct 2022

  • This release is a major new update with additional functions and changes to existing functions to present data and plots in different ways and more consistency across functions, updating various colours to viridis scales for accessibility, as well as updating some internal processes and fixing some minor bugs. Some functions have been superseded by others, but all functions will still be available within the package.

New functions:

  • plotflowdata_symbols() - plots daily data with coloured points designating symbol categories from symbols column
  • plotannualsymbols() - plots symbols by day of year or annual counts or percent of days with symbols from symbols column
  • plotannualstats2() - plotting annual stats in ribbons (similar to plotdailystats)
  • plotmonthlystats2() - plotting faceted monthly stats in ribbons (similar to plotdailystats)
  • plotmonthlymeans() - plotting long-term monthly means with percents of long-term MADs
  • calcannualhighflows() and plotannualhighflows() - calcs/plots annual high flow data, similar to annuallowflow() functions
  • calcannualextremes() - plots the values and dates from annual minimums and maximums for each year, replacing calcannualpeaks()
  • plotannualextremes() - plots the values and dates from annual minimums and maximums for each year, from calcannualextremes()
  • plotannualextremes_year() - plots the values and dates from annual minimums and maximums fora given year
  • calcannualnormaldays() and plotannualnormaldays() - counts number of normal and above/below normal days - replaced superseded annualoutside_normal() functions
  • plotannualnormaldaysyear() - plot days above normal, below normal and normal for a specific year
  • plotannualflowtimingyear() - plot annual timing of flows for a specific year

Function updates:

  • plotmissingdata() - new default plot type in tile format. Can change to original bar plot using plot_type = "bar".
  • plotdatascreening() - now changes the geompoint style based on if data is complete or has missing data (plotavailability argument) and now allows choice of annual summary statistics (include_stats argument)
  • screenflowdata() - now add columns of counts of symbol categories provided by symbol column (HYDAT Symbol column). Can remove columns by using include_symbols = FALSE.
  • plotannualmeans() - added 2 percentile (of annual means) lines to plot, added legend
  • calcannualpeaks() - superseded, replaced with calcannualextremes()
  • plotannualcumulativestats() - new default plot type in bar format. Can change to original line plot using plottype = "line".
  • calcannualoutsidenormal() and plotannualoutsidenormal() - superseded, replaced with calcannualnormaldays() and plotannualnormaldays()
  • computefrequencyanalysis() - added logical 'compute_fitting' argument to fit plotting positions (TRUE, default) or don't and just return plotting position results (first 3 objects of output) (FALSE); add custom plot y-axis title

Other updates:

  • Plot legends now centered on right, not top
  • Changed colour scales on many plots to the viridis palette
  • Can now choose 0 and 100 percentiles (was previously between 1 and 99)
  • Added args plotinnerpercentiles, plotouterpercentiles, and changed includeextreme to plotextreme in various functions
  • Added 'completeyears' argument to several functions for cross-package consistency. Doesn't change functionality, but sets/overrides ignoremissing to FALSE and allowed_missing to 0.
  • "Year" axes now labeled "Water Year" if wateryearstart != 1
  • Some appropriate "Day of Year" axes now labeled "Day of Water Year" if wateryearstart != 1
  • Changed y-axis labels on plots using scales::cutshortscale() to remove exponents on large numbers
  • Annual plots with leading empty years (gaps, missing dates, etc) will now shift plot to first year of data
  • Updated vignettes with new functions and updates
  • Added completeyears and allowedmissing arguments to writefullanalysis outputs on the fasstr functions tab

Bug fixes:

  • completeyears function now applied to all functions in compute and writefullanalysis functions
  • Removed HYDAT.sqlite file check in computeHYDATpeak_frequencies() - leaves check to tidyhydat
  • fixed fillmissingdates water year bug

- R
Published by jongoetz over 3 years ago

fasstr - fasstr 0.4.1

Updated: 10 Dec 2021

Updates:

  • Fixed major bug: Seasons identifiers were mislabeled when wateryearstart > 1 for add_seasons() and various functions use seasonal cumulative totals
  • Updated documentation - 'months' and other param descriptions
  • plotflowduration() - removed annotation ticks when not in log-scale
  • added 'logticks' argument to customize adding annotationticks or not when log scale
  • removed 'logdischarge' from plotannual_lowflows()

- R
Published by jongoetz about 4 years ago

fasstr - fasstr 0.4.0

Updated: 3 Dec 2021

Updates:

  • added flexible 'allowedmissing' argument to applicable functions, that allows users to choose the percentage of missing dates, rather than binary ignoremissing. ignoremissing argument still functions as it should (to maintain historical and future use), and is only superseded when allowedmissing argument is utilized. This argument is currently applied to functions that make most logical sense (annual and monthly functions) and are appropriate for calculations, i.e. basin summary statistics (means, percentiles, minimums, maximums). Versions of this, allowedmissingannual and allowedmissingmonthly, exists for some functions that have both annual and monthly statistics and may have different allowances; only applied to summary statistics. The new argument is applied to the following functions:

    • allowedmissing argument: calcannuallowflows(), calcannualpeaks(), calcannualstats(), calcmonthlystats(), computeannualfrequencies(), computefrequencyquantile(), plotannualstats(), plotannuallowflows(), plotannualmeans(), plotmonthly_stats()
    • allowedmissingannual and allowedmissingmonthly: calcallannualstats(), computeannualtrends(), computefullanalysis(), writefull_analysis()
  • added 'months' argument to following functions (covers all screen, calc, plot, and compute functions now):

    • plotflowdata() - will plot only data from selected months
    • addcumulativeyield() and addcumulativevolume() - will accumulate flows just in selected months
    • plotlongtermdaily_stats() - no ribbons where data gaps
    • plotlongtermmonthly_stats() - no ribbons where data gaps
    • calc_ and plotdailycumulative_stats() - will accumulate flows just in selected months
    • calc_ and plotmonthlycumulative_stats() - will accumulate flows just in selected months
    • calc_ and plotannualcumulative_stats() - will only use months select, won't calc seasonal totals if not all months
    • calc_ and plotannualflow_timing() - will use timing from just selected months
    • calcallannual_stats() - will only use months select, won't calc seasonal totals if not all months
    • computeannualtrends() - will only use months select, won't calc seasonal totals if not all months
    • compute_ and writefullanalysis() - will only use months select, won't calc seasonal totals if not all months
  • Updated 'Users Guide' vignette and Cheat Sheet with new argument updates

  • New vignette for GitHub Page: Using USGS dataRetrieval R package with fasstr

  • fixed bug: multiple custom groups/STATION_NUMBER's appropriately match to data when using a named vector

  • fixed bug: plotdailycumulative_stats() now plots accurate custom years

  • fixed bug: removed unnecessary legend items from plotflowduration()

  • fixed bug: corrected 'months' argument in calc_ and plotannualoutside_normal() to properly filter

  • fixed bug: removed unnecessary NA warning in plotlongtermdaily and plotlongtermmonthly_stats

  • renamed GitHub branches from 'master' to 'main' and updated web links

- R
Published by jongoetz about 4 years ago

fasstr - fasstr 0.3.3

Updated: 20 Oct 2021

Updates:

  • For trending, changed default/recommended method to 'zhang' over 'yuelipon' (https://github.com/pacificclimate/zyp/issues/6)
  • Removed check for a hydat.sqlite3 file; tidyhydatstop error catches error
  • Removed lubridate package dependency
  • Fixed ggplot2::guides deprecated arguments warning
  • Simplified some internal coding for efficiency
  • Removed some function examples to reduce timing; examples of usage in vignettes
  • Removed TravisCI, added Github Action R-CMD-check using usethis::usegithubactioncheckstandard()

- R
Published by jongoetz over 4 years ago

fasstr - fasstr 0.3.2

Updated: 06 Nov 2020

Updates:

  • Added calcannualpeaks() function to calculate both annual n-day min. and max. flows with dates of occurrence.
  • Added error in volume frequency analysis when providing zero or negative flow values to the logPIII dist.
  • Updated volume frequency analysis documentation.
  • Updated all vignettes for package updates, corrections, and issues.
  • Added new 'Get Started' vignette
  • Updated Cheatsheet
  • changed yield terminology to water yield from runoff yield
  • changed plot axis titles with expression()'s (i.e. m3/s --> cms)

- R
Published by jongoetz over 5 years ago

fasstr - fasstr 0.3.1

fasstr 0.3.1

Updated: 08 Jan 2020

Updates:

  • Initial CRAN release
  • added/modified files in prep for CRAN submission
  • fixed vignette coding errors
  • renamed function calclongtermmad to calclongtermmean
  • updated vignettes and README files
  • removed calclongtermstats and plotlongtermstats
  • updated Examples in all documentation (replaced \dontrun{} with a function checking for a HYDAT, left for writing functions and larger analyses)
  • fixed multiple typos
  • updated DESCRIPTION file

Previous fasstr versions

  • see NEWS file for previous versions notes

- R
Published by jongoetz over 5 years ago