VRData

This is a data package for the PNW spawner and fraction wild data used in the 5-year NWFSC PNW Salmonid Viability Reports. The official data archive is the SPS Database.

Latest Report: Ford, M. J. (editor), K. Barnas, L. Crozier, M. Diaz, E. Holmes, D. Holzer,C. E. Jordan, M. Liermann, J. Myers, M. Rowse, L. Weitkamp, and M. Williams. 2022. Biological Viability Assessment Update for Pacific Salmon and Steelhead Listed Under the Endangered Species Act: Pacific Northwest. U.S. Department of Commerce, NOAA Technical Memorandum NMFS-NWFSC-171. https://doi.org/10.25923/kq2n-ke70

Installation

Install the devtools package (if needed) and then use:

library(devtools)
devtools::install_github("nwfsc-math-bio/VRData@*release")
library(VRData)

To use

To use the data in R, see the examples under the Data info tab. For example to make a plot of the spawners, you could use

data('Puget Sound-PSchinook2020')
library(ggplot2)
out$NUMBER_OF_SPAWNERS[out$NUMBER_OF_SPAWNERS==-99] <- NA
ggplot(out, aes(x=YEAR, y=NUMBER_OF_SPAWNERS)) + 
  geom_point(na.rm = TRUE) +
  ggtitle('Puget Sound-PSchinook2020') +
  facet_wrap(~COMMON_POPULATION_NAME))

url <- "https://raw.githubusercontent.com/nmfs-fish-tools/Resources/master/Disclaimer.md"
childtext <- readLines(url)
cat(childtext, sep="\n")

url <- "https://raw.githubusercontent.com/nmfs-fish-tools/Resources/master/footer.md" 
childtext <- readLines(url)
cat(childtext, sep="\n")


nwfsc-math-bio/VRData documentation built on April 25, 2022, 5:55 p.m.