YOWNplot_SiteCompare: YOWN site comparative plot generation, in m bgs

View source: R/YOWNplot_SiteCompare.R

YOWNplot_SiteCompareR Documentation

YOWN site comparative plot generation, in m bgs

Description

[Experimental]

Plots multiple YOWN stations on the same chart

Usage

YOWNplot_SiteCompare(
  YOWNindex,
  tsunit,
  chartRange = "all",
  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"))

tsunit

Desired timeseries for plotting, CHOOSE FROM: "btoc", "bgs", "asl"

chartRange

???

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

Defaults to Yukon Water Resources Branch Aquarius web server. 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.