diff --git a/docs/404.html b/docs/404.html index 1c89e4bf..5ef78f90 100644 --- a/docs/404.html +++ b/docs/404.html @@ -32,7 +32,7 @@
diff --git a/docs/CODE_OF_CONDUCT.html b/docs/CODE_OF_CONDUCT.html index 011e262a..c02d33aa 100644 --- a/docs/CODE_OF_CONDUCT.html +++ b/docs/CODE_OF_CONDUCT.html @@ -17,7 +17,7 @@ diff --git a/docs/CONTRIBUTING.html b/docs/CONTRIBUTING.html index 690e42af..ab50f145 100644 --- a/docs/CONTRIBUTING.html +++ b/docs/CONTRIBUTING.html @@ -17,7 +17,7 @@ diff --git a/docs/LICENSE.html b/docs/LICENSE.html index adcfd66a..c951097d 100644 --- a/docs/LICENSE.html +++ b/docs/LICENSE.html @@ -17,7 +17,7 @@ @@ -130,17 +130,17 @@Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following"{}"
- boilerplate notice, with the fields enclosed by brackets information. (Don't include
- replaced with your own identifying the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "{}"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
Copyright {yyyy} {name of copyright owner}
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
-://www.apache.org/licenses/LICENSE-2.0 http
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
diff --git a/docs/articles/fasstr.html b/docs/articles/fasstr.html index 84c374b0..e8c4e1e6 100644 --- a/docs/articles/fasstr.html +++ b/docs/articles/fasstr.html @@ -33,7 +33,7 @@ diff --git a/docs/articles/fasstr_dataRetrieval.html b/docs/articles/fasstr_dataRetrieval.html index e6d59576..64d7ea9b 100644 --- a/docs/articles/fasstr_dataRetrieval.html +++ b/docs/articles/fasstr_dataRetrieval.html @@ -33,7 +33,7 @@ @@ -244,14 +244,14 @@This second function integrates readNWISdv()
with the
first function that will both download and convert the data for
@@ -404,7 +404,7 @@
This third function is the same as the second, but adds a column of drainage basin areas, in square kilometres, extracted and converted from @@ -507,12 +507,12 @@
# One station
usgs_data <- readNWISdv(siteNumbers = "12043300",
- parameterCd = "00060") %>%
+ parameterCd = "00060") %>%
rename(Value = X_00060_00003)
# Multiple stations
usgs_data <- readNWISdv(siteNumbers = c("12043300", "12048000"),
- parameterCd = "00060") %>%
+ parameterCd = "00060") %>%
rename(STATION_NUMBER = site_no,
Value = X_00060_00003)
@@ -543,7 +543,7 @@
# Get a NWIS basin area
-area_sqmile <- dataRetrieval::readNWISsite(siteNumbers = "12043300") %>%
+area_sqmile <- dataRetrieval::readNWISsite(siteNumbers = "12043300") %>%
pull(drain_area_va)
# Drainage basin area conversion for fasstr
@@ -551,28 +551,28 @@ Use of drainage basin areas# Get NWIS data
usgs_data <- readNWISdv(siteNumbers = "12043300",
- parameterCd = "00060") %>%
+ parameterCd = "00060") %>%
rename(Value = X_00060_00003)
# Add daily yield in inches, with 2323.2 basin area multiplier
add_daily_yield(data = usgs_data,
- basin_area = area_sqmile * area_adjust) %>%
+ basin_area = area_sqmile * area_adjust) %>%
rename(Yield_inch = Yield_mm)
# Calculate total annual inches, with multiplier
calc_annual_cumulative_stats(data = usgs_data,
use_yield = TRUE,
basin_area = area_sqmile * area_adjust,
- water_year_start = 10) %>%
+ water_year_start = 10) %>%
rename(Total_Yield_inch = Total_Yield_mm)
# Plot daily cumulative discharge, with multiplier
plot_daily_cumulative_stats(data = usgs_data,
use_yield = TRUE,
basin_area = area_sqmile * area_adjust,
- water_year_start = 10) %>%
- magrittr::extract2(1) + # extracts plot from list
- ggplot2::ylab("Runoff, inch")
+ water_year_start = 10) %>%
+ magrittr::extract2(1) + # extracts plot from list
+ ggplot2::ylab("Runoff, inch")
As some fasstr
functions report numbers in volumetric
discharge and derive values from ‘per seconds’ units (i.e. cms or cfs)
the original values are multiplied by 86400 seconds to obtain the daily
@@ -609,15 +609,15 @@
# Get daily data for examples
usgs_data <- readNWISdv(siteNumbers = "12043300",
- parameterCd = "00060") %>%
+ parameterCd = "00060") %>%
rename(Value = X_00060_00003,
STATION_NUMBER = site_no)
# Get drainage basin area for examples
-usgs_basin_area <- readNWISsite(siteNumbers = "12043300") %>%
+usgs_basin_area <- readNWISsite(siteNumbers = "12043300") %>%
pull(drain_area_va)
# Get daily data for examples with multiple stations
usgs_data_multiple <- readNWISdv(siteNumbers = c("12043300", "12048000"),
- parameterCd = "00060") %>%
+ parameterCd = "00060") %>%
rename(Value = X_00060_00003,
STATION_NUMBER = site_no)
To be consistent with many USGS streamflow analyses, these examples @@ -679,20 +679,20 @@
-usgs_data %>%
- fill_missing_dates(water_year_start = 10) %>%
- add_date_variables(water_year_start = 10) %>%
+usgs_data %>%
+ fill_missing_dates(water_year_start = 10) %>%
+ add_date_variables(water_year_start = 10) %>%
add_seasons(water_year_start = 10,
- seasons_length = 3) %>%
- add_rolling_means() %>%
- add_daily_volume() %>%
- rename(Volume_cuft = Volume_m3) %>%
- add_cumulative_volume(water_year_start = 10) %>%
- rename(Cumul_Volume_cuft = Cumul_Volume_m3) %>%
- add_daily_yield(basin_area = usgs_basin_area * 2323.2) %>%
- rename(Yield_inch = Yield_mm) %>%
+ seasons_length = 3) %>%
+ add_rolling_means() %>%
+ add_daily_volume() %>%
+ rename(Volume_cuft = Volume_m3) %>%
+ add_cumulative_volume(water_year_start = 10) %>%
+ rename(Cumul_Volume_cuft = Cumul_Volume_m3) %>%
+ add_daily_yield(basin_area = usgs_basin_area * 2323.2) %>%
+ rename(Yield_inch = Yield_mm) %>%
add_cumulative_yield(water_year_start = 10,
- basin_area = usgs_basin_area * 2323.2) %>%
+ basin_area = usgs_basin_area * 2323.2) %>%
rename(Cumul_Yield_inch = Cumul_Yield_mm)
Compute a frequency analysis on annual instantaneous peak data from NWIS using the custom frequency analysis function:
# dataRetrieval function to get annual instantaneous peak data, grouped by water years
-usgs_peaks <- readNWISpeak("12043300") %>%
+usgs_peaks <- readNWISpeak("12043300") %>%
mutate(Measure = "Inst. Peaks")
# Use the default column names for events and values for the custom analysis
@@ -997,9 +997,9 @@ Examples: frequency analyses= TRUE)
# Can also do the analysis with renaming parameters to match fasstr function, within a pipeline
-flood_frequency <- readNWISpeak("12043300") %>%
- select(Year = peak_dt, Value = peak_va) %>%
- mutate(Measure = "Inst. Peaks") %>%
+flood_frequency <- readNWISpeak("12043300") %>%
+ select(Year = peak_dt, Value = peak_va) %>%
+ mutate(Measure = "Inst. Peaks") %>%
compute_frequency_analysis(use_max = TRUE)
flood_frequency$Freq_Plot$labels$y <- "Discharge, cubic feet per second"
Compute a single frequency quantile with default arguments. With this diff --git a/docs/articles/fasstr_files/figure-html/plot1-1.png b/docs/articles/fasstr_files/figure-html/plot1-1.png index 0707d110..1dbc3267 100644 Binary files a/docs/articles/fasstr_files/figure-html/plot1-1.png and b/docs/articles/fasstr_files/figure-html/plot1-1.png differ diff --git a/docs/articles/fasstr_files/figure-html/plot2-1.png b/docs/articles/fasstr_files/figure-html/plot2-1.png index 8d474771..e040ea1e 100644 Binary files a/docs/articles/fasstr_files/figure-html/plot2-1.png and b/docs/articles/fasstr_files/figure-html/plot2-1.png differ diff --git a/docs/articles/fasstr_files/figure-html/plot3-1.png b/docs/articles/fasstr_files/figure-html/plot3-1.png index eccbc6e7..d227af7b 100644 Binary files a/docs/articles/fasstr_files/figure-html/plot3-1.png and b/docs/articles/fasstr_files/figure-html/plot3-1.png differ diff --git a/docs/articles/fasstr_frequency_analysis.html b/docs/articles/fasstr_frequency_analysis.html index 19f86efd..75622fdb 100644 --- a/docs/articles/fasstr_frequency_analysis.html +++ b/docs/articles/fasstr_frequency_analysis.html @@ -33,7 +33,7 @@
@@ -556,17 +556,17 @@
freq_analysis$Freq_Fitted_Quantiles
Distribution Probability Return.Period X7.Day
-1 PIII 0.010 100.000000 0.1992962
-2 PIII 0.050 20.000000 0.2832672
-3 PIII 0.100 10.000000 0.3366830
-4 PIII 0.200 5.000000 0.4095274
-5 PIII 0.500 2.000000 0.5726658
-6 PIII 0.800 1.250000 0.7622194
-7 PIII 0.900 1.111111 0.8687835
-8 PIII 0.950 1.052632 0.9590939
-9 PIII 0.975 1.025641 1.0382486
-10 PIII 0.980 1.020408 1.0618442
-11 PIII 0.990 1.010101 1.1302692
+1 PIII 0.010 100.000000 0.2009985
+2 PIII 0.050 20.000000 0.2848988
+3 PIII 0.100 10.000000 0.3381424
+4 PIII 0.200 5.000000 0.4106176
+5 PIII 0.500 2.000000 0.5724508
+6 PIII 0.800 1.250000 0.7597812
+7 PIII 0.900 1.111111 0.8647971
+8 PIII 0.950 1.052632 0.9536358
+9 PIII 0.975 1.025641 1.0313822
+10 PIII 0.980 1.020408 1.0545367
+11 PIII 0.990 1.010101 1.1216267
add_
flow_data <- flow_data[, c(orig_cols, paste('Yield_mm'))]
}
-dplyr::as_tibble(flow_data)
+dplyr::as_tibble(flow_data)
tidyr::nest()
a tibble is created
with two columns, the first being the ’STATION_NUMBER’ and the second
being a tibble of data for each ‘STATION_NUMBER’ (a tibble of tibbles).
Then using dplyr::mutate()
function a column of ggplots is
-created; and using purrr::map2()
all of the plots can be
+created; and using purrr::map2()
all of the plots can be
created simultaneously (thus saving time in the function). As this type
of table isn’t entirely user-friendly, each plot is extracted into a
list and named appropriately (typically by each grouping and then the
@@ -512,22 +512,22 @@
-fill_missing_dates(station_number = "08HA011") %>%
- add_date_variables() %>%
+fill_missing_dates(station_number = "08HA011") %>%
+ add_date_variables() %>%
add_rolling_means(roll_days = 7)
STATION_NUMBER Date Parameter Value Symbol CalendarYear Month MonthName
1 08HA011 1960-01-01 Flow 62.9 E 1960 1 Jan
@@ -429,7 +429,7 @@ Filling missing datestidyhydat::hy_daily_flows(station_number = "08NM116")
# Gap filled with NA's
-tidyhydat::hy_daily_flows(station_number = "08NM116") %>%
+tidyhydat::hy_daily_flows(station_number = "08NM116") %>%
fill_missing_dates()
It is ideal to fill missing dates before using other
add_*
functions so dates added are not missing the other
@@ -622,14 +622,14 @@
-fill_missing_dates(station_number = "08NM116") %>%
- add_date_variables(water_year_start = 9) %>%
- add_seasons(seasons_length = 3) %>%
- add_rolling_means() %>%
- add_basin_area() %>%
- add_daily_volume() %>%
- add_daily_yield() %>%
- add_cumulative_volume() %>%
+fill_missing_dates(station_number = "08NM116") %>%
+ add_date_variables(water_year_start = 9) %>%
+ add_seasons(seasons_length = 3) %>%
+ add_rolling_means() %>%
+ add_basin_area() %>%
+ add_daily_volume() %>%
+ add_daily_yield() %>%
+ add_cumulative_volume() %>%
add_cumulative_yield()
plot_annual_symbols(station_number = "08NM116")
$Annual_Symbols
-Warning:
[1m
[22mRemoved 144 rows containing missing values (`geom_tile()`).
+Warning:
[1m
[22mRemoved 146 rows containing missing values or values outside the scale range
+(`geom_tile()`).
calc_longterm_daily_stats(station_number = "08NM116",
start_year = 1974)
- STATION_NUMBER Month Mean Median Maximum Minimum P10 P90
-1 08NM116 Jan 1.122294 0.9340 9.50 0.160 0.5706 1.750
-2 08NM116 Feb 1.127140 0.9435 5.81 0.140 0.5064 1.900
-3 08NM116 Mar 1.748453 1.2400 17.50 0.380 0.6776 3.404
-4 08NM116 Apr 8.169997 5.8000 53.50 0.505 1.4200 18.300
-5 08NM116 May 25.182745 22.4000 95.40 2.550 10.4000 44.340
-6 08NM116 Jun 22.375935 19.9000 86.20 0.450 6.1390 40.800
-7 08NM116 Jul 6.237522 3.9700 76.80 0.332 1.2200 13.900
-8 08NM116 Aug 2.176655 1.6300 22.40 0.427 0.8466 4.008
-9 08NM116 Sep 2.319518 1.6300 17.60 0.364 0.7859 4.751
-10 08NM116 Oct 2.152216 1.7200 15.20 0.267 0.8576 4.122
-11 08NM116 Nov 1.950852 1.5600 11.70 0.260 0.6078 3.741
-12 08NM116 Dec 1.254868 1.0700 7.30 0.244 0.5468 2.150
-13 08NM116 Long-term 6.331062 1.8200 95.40 0.140 0.7060 20.100
+ STATION_NUMBER Month Mean Median Maximum Minimum P10 P90
+1 08NM116 Jan 1.116021 0.930 9.50 0.160 0.5717 1.750
+2 08NM116 Feb 1.118619 0.934 5.81 0.140 0.5070 1.880
+3 08NM116 Mar 1.732962 1.230 17.50 0.380 0.6800 3.369
+4 08NM116 Apr 8.135122 5.780 53.50 0.505 1.4200 18.120
+5 08NM116 May 25.034315 22.000 95.40 2.550 10.4700 43.900
+6 08NM116 Jun 22.137576 19.650 86.20 0.450 6.0990 40.500
+7 08NM116 Jul 6.137695 3.825 76.80 0.332 1.1870 13.630
+8 08NM116 Aug 2.157565 1.620 22.40 0.427 0.8494 3.990
+9 08NM116 Sep 2.295582 1.615 17.60 0.364 0.7880 4.700
+10 08NM116 Oct 2.136288 1.695 15.20 0.267 0.8637 4.082
+11 08NM116 Nov 1.962619 1.570 11.70 0.260 0.6117 3.750
+12 08NM116 Dec 1.271259 1.080 7.30 0.244 0.5500 2.166
+13 08NM116 Long-term 6.282538 1.805 95.40 0.140 0.7080 19.900
The plot_longterm_daily_stats()
will plot the monthly
mean, median, maximum, and minimum values along with selected inner and
outer percentiles ribbons on one plot. Change the inner and outer
@@ -877,33 +878,33 @@
STATION_NUMBER Month Mean Median Maximum Minimum P10
-1 08NM116 Jan 1.122294 0.9679032 6.117742 0.3155161 0.6246516
-2 08NM116 Feb 1.128056 0.9607586 3.831786 0.3528276 0.5149286
-3 08NM116 Mar 1.748453 1.4009677 6.926774 0.5067419 0.8168000
-4 08NM116 Apr 8.169997 7.7613333 23.880333 1.5993333 2.9978667
-5 08NM116 May 25.182745 23.8483871 48.122581 13.9861288 16.1646452
-6 08NM116 Jun 22.375935 21.8166669 48.640000 3.1504333 11.3063333
-7 08NM116 Jul 6.237522 4.5012903 25.639355 0.9213871 2.0231935
-8 08NM116 Aug 2.176655 1.7938710 10.193548 0.8721290 1.1316645
-9 08NM116 Sep 2.319518 1.7580000 8.109333 0.6999667 1.0131933
-10 08NM116 Oct 2.152216 1.8951613 5.661290 0.5329032 1.0350516
-11 08NM116 Nov 1.950852 1.5526667 5.413667 0.4982333 0.7192933
-12 08NM116 Dec 1.254868 1.0968065 3.648387 0.4502581 0.5574323
-13 08NM116 Annual 6.330833 6.2744794 11.134121 2.8761370 4.3721797
+1 08NM116 Jan 1.116021 0.9628871 6.117742 0.3155161 0.6246903
+2 08NM116 Feb 1.119439 0.9530400 3.831786 0.3528276 0.5169643
+3 08NM116 Mar 1.732962 1.3363387 6.926774 0.5067419 0.8178419
+4 08NM116 Apr 8.135122 7.7333333 23.880333 1.5993333 3.0382333
+5 08NM116 May 25.034315 23.8032259 48.122581 13.9861288 16.1880001
+6 08NM116 Jun 22.137576 21.5011668 48.640000 3.1504333 10.8967667
+7 08NM116 Jul 6.137695 4.4229032 25.639355 0.9213871 1.8967678
+8 08NM116 Aug 2.157565 1.7775806 10.193548 0.8721290 1.1333774
+9 08NM116 Sep 2.295582 1.7156667 8.109333 0.6999667 1.0157533
+10 08NM116 Oct 2.136288 1.8703226 5.661290 0.5329032 1.0412000
+11 08NM116 Nov 1.962619 1.6126333 5.413667 0.4982333 0.7207867
+12 08NM116 Dec 1.271259 1.1046774 3.648387 0.4502581 0.5605258
+13 08NM116 Annual 6.282280 6.2583836 11.134121 2.8761370 4.2507660
P90
-1 1.643419
-2 1.696507
-3 2.764129
-4 12.821133
-5 33.928387
-6 36.802000
-7 12.742839
-8 3.365161
-9 3.991000
-10 3.628335
-11 3.316533
-12 2.093226
-13 8.441362
+1 1.633452
+2 1.689794
+3 2.739387
+4 12.749600
+5 33.679355
+6 36.800667
+7 12.676645
+8 3.362903
+9 3.959333
+10 3.616171
+11 3.294233
+12 2.084677
+13 8.438567
The corresponding plot_longterm_monthly_stats()
function
plots the data, with similar options as
plot_longterm_daily_stats()
.
$Annual_Statistics
-Warning:
[1m
[22mTransformation introduced infinite values in continuous y-axis
+Warning in ggplot2::scale_y_log10(expand = ggplot2::expansion(mult = c(0.02, :
+
[1m
[22m
[32mlog-10
[39m transformation introduced infinite values.
calc_daily_stats(station_number = "08NM116",
start_year = 1974)
STATION_NUMBER Date DayofYear Mean Median Minimum Maximum P5 P25
-1 08NM116 Jan-01 1 1.070319 0.977 0.328 2.51 0.5455 0.6850
-2 08NM116 Jan-02 2 1.044745 0.929 0.310 2.26 0.5320 0.6795
-3 08NM116 Jan-03 3 1.024426 0.905 0.290 2.00 0.5290 0.7020
-4 08NM116 Jan-04 4 1.035596 0.910 0.284 2.52 0.5113 0.7235
-5 08NM116 Jan-05 5 1.021064 0.899 0.302 2.25 0.5390 0.7090
-6 08NM116 Jan-06 6 1.015681 0.870 0.315 2.32 0.5201 0.7335
- P75 P95
-1 1.300 1.850
-2 1.300 1.870
-3 1.195 1.927
-4 1.215 1.905
-5 1.190 1.929
-6 1.250 1.871
+ STATION_NUMBER Date DayofYear Mean Median Minimum Maximum P5
+1 08NM116 Jan-01 1 1.068750 0.9860 0.328 2.51 0.54725
+2 08NM116 Jan-02 2 1.042771 0.9395 0.310 2.26 0.53400
+3 08NM116 Jan-03 3 1.022583 0.9205 0.290 2.00 0.53050
+4 08NM116 Jan-04 4 1.032208 0.9025 0.284 2.52 0.51335
+5 08NM116 Jan-05 5 1.016521 0.8950 0.302 2.25 0.54050
+6 08NM116 Jan-06 6 1.010042 0.8625 0.315 2.32 0.52045
+ P25 P75 P95
+1 0.69150 1.2750 1.8500
+2 0.69025 1.2750 1.8650
+3 0.70300 1.1875 1.9215
+4 0.73175 1.1975 1.8875
+5 0.70950 1.1850 1.9105
+6 0.73800 1.2400 1.8545
The plotting daily statistics function will plot the monthly mean, median, maximum, and minimum values along with selected inner and outer percentiles ribbons on one plot. Change the inner and outer percentile @@ -1045,15 +1047,15 @@
STATION_NUMBER LTMAD X5.MAD X10.MAD X20.MAD
-1 08NM116 6.331062 0.3165531 0.6331062 1.266212
+1 08NM116 6.282538 0.3141269 0.6282538 1.256508
calc_longterm_percentile()
calculates the selected
long-term percentiles of all the daily flow values.
calc_longterm_percentile(station_number = "08NM116",
start_year = 1974,
percentiles = c(25,50,75))
STATION_NUMBER P25 P50 P75
-1 08NM116 1.03 1.82 5.67
+ STATION_NUMBER P25 P50 P75
+1 08NM116 1.03 1.805 5.58
calc_flow_percentile()
calculates the percentile rank of
a specified flow value, provided as flow_value
. It compares
the flow value to all daily flow values to determines the percentile
@@ -1063,7 +1065,7 @@
STATION_NUMBER Percentile
-1 08NM116 76.397
+1 08NM116 76.506
add_*
functions), the discharge axis title will adjust accordingly.
-add_daily_volume(station_number = "08NM116") %>%
+add_daily_volume(station_number = "08NM116") %>%
plot_annual_stats(values = "Volume_m3",
start_year = 1974)
$Annual_Statistics
-add_daily_yield(station_number = "08NM116") %>%
+add_daily_yield(station_number = "08NM116") %>%
plot_daily_stats(values = "Yield_mm",
start_year = 1974)
$Daily_Statistics
@@ -1205,31 +1207,31 @@ STATION_NUMBER Month Mean Median Maximum Minimum P5
-1 08NM116 Jan 3005952 2592432 16385760 845078.4 1503135
-2 08NM116 Feb 5757593 4928947 24560928 1729123.2 2724589
-3 08NM116 Mar 10440650 8677498 38265696 3086380.8 4902707
-4 08NM116 Apr 31617282 28485389 74097331 9895046.4 13125819
-5 08NM116 May 99066747 93268887 159751008 50343551.6 54632431
-6 08NM116 Jun 157065172 158564131 255162529 76246877.0 90921640
-7 08NM116 Jul 173771752 177670628 301884193 81422928.3 99999127
-8 08NM116 Aug 179601706 181262189 311904865 84962822.7 103871315
-9 08NM116 Sep 185613898 188800847 323685505 86777136.3 106433697
-10 08NM116 Oct 191378392 192925325 337755745 88204464.3 109851699
-11 08NM116 Nov 196435000 196449148 346120993 89495885.1 111684986
-12 08NM116 Dec 199796039 197871983 351125627 90701856.3 113122665
+1 08NM116 Jan 2989150 2578997 16385760 845078.4 1511767
+2 08NM116 Feb 5719475 4890888 24560928 1729123.2 2734102
+3 08NM116 Mar 10361041 8635205 38265696 3086380.8 4918048
+4 08NM116 Apr 31447278 28262347 74097331 9895046.4 13166271
+5 08NM116 May 98499186 91484726 159751008 50343551.6 54647836
+6 08NM116 Jun 155879782 156396614 255162529 76246877.0 91034245
+7 08NM116 Jul 172318984 177471648 301884193 81422928.3 100164933
+8 08NM116 Aug 178097805 180792130 311904865 84962822.7 103379933
+9 08NM116 Sep 184047954 187290446 323685505 86777136.3 106057482
+10 08NM116 Oct 189769786 192634934 337755745 88204464.3 109521011
+11 08NM116 Nov 194856894 195413731 346120993 89495885.1 112134313
+12 08NM116 Dec 198261834 197364384 351125627 90701856.3 113557244
P25 P75 P95
-1 1950221 3407616 5231434
-2 3743410 6122650 10551946
-3 6587179 11744741 20279117
-4 24031642 36248083 63880462
-5 77104137 117601934 155839473
-6 123343214 185879578 228437522
-7 128909577 208896667 259840380
-8 132292699 219312101 265726294
-9 137414966 228368981 270057785
-10 143054726 231213701 274458404
-11 148326379 235173715 280909365
-12 152096011 239892883 284372018
+1 1952813 3339360 5216443
+2 3765031 6026702 10457035
+3 6599167 11733746 20042554
+4 23414530 36003874 63254900
+5 75785976 115911497 155790364
+6 117396280 185669021 228096484
+7 125320132 206338168 259162943
+8 129012415 218750047 264965395
+9 132618708 227954197 269259345
+10 136306260 230884539 273618393
+11 141394377 234482947 279956659
+12 145426017 238912243 283363324
The plot_monthly_cumulative_stats()
function will plot
the monthly total mean, median, maximum, and minimum values along with
the 5th, 25th, 75th, and 95th percentiles all on one plot. The
@@ -1260,20 +1262,20 @@
calc_daily_cumulative_stats(station_number = "08NM116",
start_year = 1974)
- STATION_NUMBER Date DayofYear Mean Median Minimum Maximum P5
-1 08NM116 Jan-01 1 92475.57 84412.8 28339.2 216864 47131.2
-2 08NM116 Jan-02 2 182741.51 164678.4 55123.2 412128 92793.6
-3 08NM116 Jan-03 3 271251.88 241488.0 80179.2 581472 136987.2
-4 08NM116 Jan-04 4 360727.35 316137.6 104716.8 768960 183902.4
-5 08NM116 Jan-05 5 448947.27 391478.4 130809.6 952992 233496.0
-6 08NM116 Jan-06 6 536702.09 474681.6 158025.6 1123200 282398.4
+ STATION_NUMBER Date DayofYear Mean Median Minimum Maximum P5
+1 08NM116 Jan-01 1 92340.0 85190.4 28339.2 216864 47282.4
+2 08NM116 Jan-02 2 182435.4 166363.2 55123.2 412128 93139.2
+3 08NM116 Jan-03 3 270786.6 245203.2 80179.2 581472 137570.4
+4 08NM116 Jan-04 4 359969.4 320241.6 104716.8 768960 184528.8
+5 08NM116 Jan-05 5 447796.8 392601.6 130809.6 952992 234036.0
+6 08NM116 Jan-06 6 535064.4 466732.8 158025.6 1123200 283024.8
P25 P75 P95
-1 59184.0 112320.0 159840.0
-2 117892.8 220320.0 325209.6
-3 176083.2 331344.0 482544.0
-4 239932.8 430272.0 621216.0
-5 307497.6 531792.0 778377.6
-6 367113.6 636163.2 958867.2
+1 59745.6 110160.0 159840.0
+2 119383.2 218160.0 325123.2
+3 178891.2 328968.0 482328.0
+4 241358.4 429408.0 620352.0
+5 309182.4 531576.0 776779.2
+6 368366.4 636033.6 953942.4
The plot_daily_cumulative_stats()
function will plot the
daily cumulative total mean, median, maximum, and minimum values along
with the 5th, 25th, 75th, and 95th percentiles all on one plot. The
@@ -1527,8 +1529,8 @@
$Annual_Extremes_Year
-Warning:
[1m
[22mTransformation introduced infinite values in continuous y-axis
-
[1m
[22mTransformation introduced infinite values in continuous y-axis
+Warning in ggplot2::scale_y_log10(breaks = scales::log_breaks(n = 8, base = 10), :
[1m
[22m
[32mlog-10
[39m transformation introduced infinite values.
+
[1m
[22m
[32mlog-10
[39m transformation introduced infinite values.
calc_annual_normal_days(station_number = "08NM116",
start_year = 1974)
STATION_NUMBER Year Normal_Days Below_Normal_Days Above_Normal_Days
-1 08NM116 1974 209 78 78
-2 08NM116 1975 196 136 33
-3 08NM116 1976 168 51 147
-4 08NM116 1977 250 106 9
-5 08NM116 1978 236 17 112
-6 08NM116 1979 139 155 71
+1 08NM116 1974 210 77 78
+2 08NM116 1975 197 135 33
+3 08NM116 1976 172 51 143
+4 08NM116 1977 253 103 9
+5 08NM116 1978 237 16 112
+6 08NM116 1979 144 150 71
Each of the above, below, and normal days can be plotted using the
plot_annual_normal_days()
function.
@@ -2115,19 +2117,18 @@Including a standard title on th
Customizing a plot by using additional
-ggplot2
functions:-Warning: package 'ggplot2' was built under R version 4.2.3
+ geom_hline(yintercept = 1.5, colour = "red", linetype = 2, size = 1) + + geom_vline(xintercept = as.Date("1900-03-01"), colour = "darkgray", linetype = 1, size = 0.5) + + geom_vline(xintercept = as.Date("1900-08-05"), colour = "darkgray", linetype = 1, size = 0.5) + + ggtitle("Mission Creek Annual Hydrograph") + + ylab("Flow (cms)")-# Create the plot list and extract the plot using [[1]] +
library(ggplot2) + +# Create the plot list and extract the plot using [[1]] plot <- plot_daily_stats(station_number = "08NM116", start_year = 1980)[[1]] # Customize the plot with various `ggplot2` functions plot + - geom_hline(yintercept = 1.5, colour = "red", linetype = 2, size = 1) + - geom_vline(xintercept = as.Date("1900-03-01"), colour = "darkgray", linetype = 1, size = 0.5) + - geom_vline(xintercept = as.Date("1900-08-05"), colour = "darkgray", linetype = 1, size = 0.5) + - ggtitle("Mission Creek Annual Hydrograph") + - ylab("Flow (cms)")
Warning:
[1m
[22mUsing `size` aesthetic for lines was deprecated in ggplot2 3.4.0.
[36mℹ
[39m Please use `linewidth` instead.
[90mThis warning is displayed once every 8 hours.
[39m
@@ -2189,14 +2190,14 @@ Writing a flow data setThe following will write an “xlsx” file called
“08NM116_data_data.xlsx” into your working directory that includes all
daily flow data from that station in HYDAT:
-
+
write_flow_data(station_number = "08NM116")
The following is an example of possible customization:
-write_flow_data(station_number = "08NM116",
-start_year = 1960,
- end_year = 1970
- fill_missing = TRUE,
- file_name = "mission_creek.csv")
+
Writing a data frame
@@ -2210,7 +2211,7 @@ Writing a data frame
+
annual_data <- calc_annual_stats(station_number = "08NM116")
write_results(data = annual_data,
@@ -2232,7 +2233,7 @@ Writing a list of plotsggplots2:ggsave()
, can also be used.
The following will save each annual plot as a “png” file in a folder
called “Annual Plots” in the working directory:
-
+
annual_plots <- plot_annual_stats(station_number = c("08NM116","08NM242"))
write_plots(plots = annual_data,
@@ -2241,14 +2242,14 @@ Writing a list of plotsThe following will save all annual plots as combined “pdf” document
called “Annual Plots” in the working directory with each plot on a
different page:
-
+
annual_plots <- plot_annual_stats(station_number = c("08NM116","08NM242"))
write_plots(plots = annual_data,
folder_name = "Annual Plots",
combined_pdf = TRUE)
If you would prefer to save the plots using other functions, like the
-ggplot2::ggsave()
function, the desired plot must subsetted
+ggplot2::ggsave()
function, the desired plot must subsetted
from the list first so the object provided the function is a plot object
and not a list. Individual plots can be subsetted from their lists using
either the dollar sign, $
@@ -2275,7 +2276,7 @@
Writing a list of data frames a
used.
The following will save all plots and tables in a folder called
“Frequency Analysis” in the working directory:
-
+
freq_analysis <- compute_annual_frequencies(station_number = "08NM116")
write_objects_list(list = freq_analysis,
diff --git a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-107-1.png b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-107-1.png
index a84bd1af..9a088aaf 100644
Binary files a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-107-1.png and b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-107-1.png differ
diff --git a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-110-1.png b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-110-1.png
index ca8c3ac1..04ace690 100644
Binary files a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-110-1.png and b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-110-1.png differ
diff --git a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-18-1.png b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-18-1.png
index b195cf62..1d42ed3e 100644
Binary files a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-18-1.png and b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-18-1.png differ
diff --git a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-19-1.png b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-19-1.png
index bd21dbe0..c4f81726 100644
Binary files a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-19-1.png and b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-19-1.png differ
diff --git a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-23-1.png b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-23-1.png
index 20ac78d7..cfe25b22 100644
Binary files a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-23-1.png and b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-23-1.png differ
diff --git a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-24-1.png b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-24-1.png
index 25013d2c..38aba704 100644
Binary files a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-24-1.png and b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-24-1.png differ
diff --git a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-25-1.png b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-25-1.png
index 9541ca81..8379a93f 100644
Binary files a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-25-1.png and b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-25-1.png differ
diff --git a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-28-1.png b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-28-1.png
index bed671be..e4aeee5a 100644
Binary files a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-28-1.png and b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-28-1.png differ
diff --git a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-31-1.png b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-31-1.png
index 4ae3dfe1..0afb97ec 100644
Binary files a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-31-1.png and b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-31-1.png differ
diff --git a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-34-1.png b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-34-1.png
index fec18c7d..46de5528 100644
Binary files a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-34-1.png and b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-34-1.png differ
diff --git a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-37-1.png b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-37-1.png
index 16f87105..6c339e05 100644
Binary files a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-37-1.png and b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-37-1.png differ
diff --git a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-40-1.png b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-40-1.png
index 6bcdd343..8e4d5ea1 100644
Binary files a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-40-1.png and b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-40-1.png differ
diff --git a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-41-1.png b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-41-1.png
index b3d63c56..22340b66 100644
Binary files a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-41-1.png and b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-41-1.png differ
diff --git a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-42-1.png b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-42-1.png
index 03cfae7f..d1dcb4c6 100644
Binary files a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-42-1.png and b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-42-1.png differ
diff --git a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-43-1.png b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-43-1.png
index 3c62e7d2..917461bd 100644
Binary files a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-43-1.png and b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-43-1.png differ
diff --git a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-50-1.png b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-50-1.png
index 1acf7366..9f602d65 100644
Binary files a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-50-1.png and b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-50-1.png differ
diff --git a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-51-1.png b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-51-1.png
index 650bdcc5..d27184b1 100644
Binary files a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-51-1.png and b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-51-1.png differ
diff --git a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-56-1.png b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-56-1.png
index fab7f93a..f2c86f36 100644
Binary files a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-56-1.png and b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-56-1.png differ
diff --git a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-59-1.png b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-59-1.png
index c64cc9e3..6cf62dc4 100644
Binary files a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-59-1.png and b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-59-1.png differ
diff --git a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-62-1.png b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-62-1.png
index 4f2a6b43..fc08c338 100644
Binary files a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-62-1.png and b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-62-1.png differ
diff --git a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-65-1.png b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-65-1.png
index 48e0037c..163df4e7 100644
Binary files a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-65-1.png and b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-65-1.png differ
diff --git a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-66-1.png b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-66-1.png
index 6913f523..6f3b5bbe 100644
Binary files a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-66-1.png and b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-66-1.png differ
diff --git a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-69-1.png b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-69-1.png
index 03b20cef..61d34d2f 100644
Binary files a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-69-1.png and b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-69-1.png differ
diff --git a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-69-2.png b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-69-2.png
index dba79621..ecdae083 100644
Binary files a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-69-2.png and b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-69-2.png differ
diff --git a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-72-1.png b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-72-1.png
index 15064539..33d6d8ed 100644
Binary files a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-72-1.png and b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-72-1.png differ
diff --git a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-72-2.png b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-72-2.png
index 462a1a72..50ac1227 100644
Binary files a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-72-2.png and b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-72-2.png differ
diff --git a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-75-1.png b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-75-1.png
index 30f39566..d8bd032d 100644
Binary files a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-75-1.png and b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-75-1.png differ
diff --git a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-75-2.png b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-75-2.png
index 607e3e39..879844e0 100644
Binary files a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-75-2.png and b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-75-2.png differ
diff --git a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-76-1.png b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-76-1.png
index 8e140720..6e7b8969 100644
Binary files a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-76-1.png and b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-76-1.png differ
diff --git a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-79-1.png b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-79-1.png
index c76946ac..18709d0d 100644
Binary files a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-79-1.png and b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-79-1.png differ
diff --git a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-80-1.png b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-80-1.png
index 20a65266..9b08476f 100644
Binary files a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-80-1.png and b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-80-1.png differ
diff --git a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-82-1.png b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-82-1.png
index 8212c277..38022cc3 100644
Binary files a/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-82-1.png and b/docs/articles/fasstr_users_guide_files/figure-html/unnamed-chunk-82-1.png differ
diff --git a/docs/articles/index.html b/docs/articles/index.html
index 5e1aeee5..c6a2df52 100644
--- a/docs/articles/index.html
+++ b/docs/articles/index.html
@@ -17,7 +17,7 @@
diff --git a/docs/authors.html b/docs/authors.html
index c1aca873..d21887ba 100644
--- a/docs/authors.html
+++ b/docs/authors.html
@@ -17,7 +17,7 @@
@@ -128,17 +128,18 @@ Citation
- Goetz J, Schwarz C (2023).
+
Goetz J, Schwarz C (2024).
fasstr: Analyze, Summarize, and Visualize Daily Streamflow Data.
-https://bcgov.github.io/fasstr/,
-https://github.com/bcgov/fasstr.
+R package version 0.5.2,
+https://github.com/bcgov/fasstr, https://bcgov.github.io/fasstr/.
@Manual{,
title = {fasstr: Analyze, Summarize, and Visualize Daily Streamflow Data},
author = {Jon Goetz and Carl James Schwarz},
- year = {2023},
- note = {https://bcgov.github.io/fasstr/,
+ year = {2024},
+ note = {R package version 0.5.2,
https://github.com/bcgov/fasstr},
+ url = {https://bcgov.github.io/fasstr/},
}
diff --git a/docs/index.html b/docs/index.html
index 92d4705c..da4f2b63 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -34,7 +34,7 @@
@@ -145,7 +145,7 @@
selecting for rolling day averages (e.g. 7-day rolling average); and,
choosing how missing dates are handled, amongst others.
-This package is maintained by the Water Management Branch of the British Columbia Ministry of Forests.
+This package is maintained by the Water Management Branch of the British Columbia Ministry of Water, Land and Resource Stewardship.
Installation
@@ -192,19 +192,19 @@ How to Contribute
License
-2019 Province of British Columbia
- Copyright
-2.0 (the "License");
- Licensed under the Apache License, Version in compliance with the License.
- you may not use this file except
- You may obtain a copy of the License at
-://www.apache.org/licenses/LICENSE-2.0
- http
-in writing, software
- Unless required by applicable law or agreed to "AS IS" BASIS,
- distributed under the License is distributed on an
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.for the specific language governing permissions and
- See the License limitations under the License.
+Copyright 2019 Province of British Columbia
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
diff --git a/docs/news/index.html b/docs/news/index.html
index 2f40a352..d7f68a6e 100644
--- a/docs/news/index.html
+++ b/docs/news/index.html
@@ -17,7 +17,7 @@
@@ -99,7 +99,15 @@ Changelog
-fasstr 0.5.1
+fasstr 0.5.2
+Updated: 27 Mar 2024
+
+Bug fixes:
+- added workaround for issue with scales::cut_short_scale() bug caused by scales 1.3.0. https://github.com/r-lib/scales/issues/413. Fix works with previous and new versions of scales.
+
+
+
+fasstr 0.5.12023-03-22
Updated: 20 Mar 2023
Bug fixes:
diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml
index 5126b575..02c6a079 100644
--- a/docs/pkgdown.yml
+++ b/docs/pkgdown.yml
@@ -1,4 +1,4 @@
-pandoc: 2.19.2
+pandoc: 3.1.1
pkgdown: 2.0.7
pkgdown_sha: ~
articles:
@@ -9,7 +9,7 @@ articles:
fasstr_trending_analysis: fasstr_trending_analysis.html
fasstr_under_the_hood: fasstr_under_the_hood.html
fasstr_users_guide: fasstr_users_guide.html
-last_built: 2023-03-22T16:54Z
+last_built: 2024-03-28T18:35Z
urls:
reference: https://bcgov.github.io/fasstr/reference
article: https://bcgov.github.io/fasstr/articles
diff --git a/docs/reference/Rplot002.png b/docs/reference/Rplot002.png
index f3d40994..3215837e 100644
Binary files a/docs/reference/Rplot002.png and b/docs/reference/Rplot002.png differ
diff --git a/docs/reference/add_basin_area.html b/docs/reference/add_basin_area.html
index 7b8bb8e1..3286f61b 100644
--- a/docs/reference/add_basin_area.html
+++ b/docs/reference/add_basin_area.html
@@ -17,7 +17,7 @@
@@ -166,7 +166,7 @@ Examples
basin_area = c("08NM116" = 800, "08NM242" = 10))
}
-#> # A tibble: 35,528 × 6
+#> # A tibble: 37,323 × 6
#> STATION_NUMBER Date Parameter Value Symbol Basin_Area_sqkm
#> <chr> <date> <chr> <dbl> <chr> <dbl>
#> 1 08NM116 1949-04-01 Flow 1.13 E 800
@@ -179,7 +179,7 @@ Examples
#> 8 08NM116 1949-04-08 Flow 2.35 NA 800
#> 9 08NM116 1949-04-09 Flow 2.78 NA 800
#> 10 08NM116 1949-04-10 Flow 2.94 NA 800
-#> # … with 35,518 more rows
+#> # ℹ 37,313 more rows
diff --git a/docs/reference/add_cumulative_volume.html b/docs/reference/add_cumulative_volume.html
index d3f2fd21..286750ca 100644
--- a/docs/reference/add_cumulative_volume.html
+++ b/docs/reference/add_cumulative_volume.html
@@ -19,7 +19,7 @@
@@ -179,7 +179,7 @@ Examples
water_year_start = 8)
}
-#> # A tibble: 23,079 × 6
+#> # A tibble: 23,444 × 6
#> STATION_NUMBER Date Parameter Value Symbol Cumul_Volume_m3
#> <chr> <date> <chr> <dbl> <chr> <dbl>
#> 1 08NM116 1949-04-01 Flow 1.13 E NA
@@ -192,7 +192,7 @@ Examples
#> 8 08NM116 1949-04-08 Flow 2.35 NA NA
#> 9 08NM116 1949-04-09 Flow 2.78 NA NA
#> 10 08NM116 1949-04-10 Flow 2.94 NA NA
-#> # … with 23,069 more rows
+#> # ℹ 23,434 more rows
diff --git a/docs/reference/add_cumulative_yield.html b/docs/reference/add_cumulative_yield.html
index 5e1c096d..ad22a5c8 100644
--- a/docs/reference/add_cumulative_yield.html
+++ b/docs/reference/add_cumulative_yield.html
@@ -20,7 +20,7 @@
@@ -196,7 +196,7 @@ Write a list of plots (ggplots; as used by fasstr
) into a directory or PDF document.
- When writing into a named directory each plot will be named by the plot name listed in the list; uses ggplot2::ggsave
+ When writing into a named directory each plot will be named by the plot name listed in the list; uses ggplot2::ggsave
function. When writing into a PDF document (combined_pdf == TRUE
) the plot names will not appear; uses
grDevices::pdf
function.
GitHub Actions using usethis::use_github_action_check_standard()
GitHub Actions using usethis::use_github_action_check_standard()
R/devtools
@@ -119,9 +119,7 @@