plotFirstYearShortCond: Scatter plot of elevation vs. trace number

Description Usage Arguments Value

View source: R/plotFirstYearShortCond.R

Description

plotFirstYearShortCond() plots elevation vs. trace number for a single year. It colors the points based on Powell release for the following WY and the shape is based on either Powell October-December release or MWD's ICS creation/delivery volume.

Usage

1
2
3
4
5
6
7
8
plotFirstYearShortCond(
  model,
  iFile,
  scenario,
  filterOn = "shortage",
  dataYear,
  colorVar = "WYRelease"
)

Arguments

model

Either "MTOM" or "CRSS"

iFile

Folder path or file that contains the data. If model is CRSS, then the folder should have "crssShortCond_ann.feather" and "crssShortCond_mon.feather" files. If model is "MTOM", then this should be a csv file that contains the necessary data.

scenario

If model is CRSS, then this is the scenario that will be used.

filterOn

Valid choices are 'shortage' or 'pe'. If 'pe', then will keep all traces that are <= 1077.

dataYear

Year to plot. Data are filtered to this year.

colorVar

Has to be "WYRelease" if model is MTOM. Otherwise, can be "WYRelease" or any other variable in the feather files. Typically, the other value is "mwdIcs".

Value

gg object.


rabutler-usbr/crssplot documentation built on Feb. 6, 2022, 3:33 p.m.