YOWNplot_WSC: YOWN-WSC comparative plot generation relative to a common...

View source: R/YOWNplot_WSC.R

YOWNplot_WSCR Documentation

YOWN-WSC comparative plot generation relative to a common datum

Description

[Experimental]

Plots YOWN data alongside WSC stations, in m asl. Only works for stations that have values in the "Elevation" field in their Aquarius information page.

Usage

YOWNplot_WSC(
  YOWNindex,
  WSCindex,
  title = "YOWN wells vs. WSC Sites",
  chartXInterval = "1 month",
  saveTo = "desktop",
  login = Sys.getenv(c("AQUSER", "AQPASS")),
  server = "https://yukon.aquaticinformatics.net/AQUARIUS"
)

Arguments

YOWNindex

Character vector of YOWN site IDs (eg. c("YOWN-2201S", "YOWN-2201D", "YOWN-2202"))

WSCindex

Character vector of WSC site IDs (eg. c("09AB004", "09AH001"))

title

The title you wish to see on the plot as character vector.

chartXInterval

????

saveTo

Location for data files to be saved as a character vector. Default "desktop" is to a new folder on your desktop; "choose" lets you interactively choose your save location.

login

Your Aquarius login credentials as a character vector of two (eg. c("cmfische", "password") Default pulls information from your .renviron profile; see details. Passed to WRBtools::aq_download().

server

The URL for your organization's Aquarius web server. Default is for the Yukon Water Resources Branch. Passed to WRBtools::aq_download().

Details

To store login credentials in your .renviron profile, call usethis::edit_r_environ() and enter your username and password as value pairs, as AQUSER="your username" and AQPASS = "your password".

Value

Writes .pdf plot of WSC and YOWN data


YukonWRB/WRBplots documentation built on Sept. 29, 2023, 2:05 p.m.