plot_elev_area_vol: Plot lake elevation vs. area or volume for one or more lakes

Description Usage Arguments Value

View source: R/plot_elev_area_vol.R

Description

This function creates a plot object that showcases the lake elevation vs. lake area or lake elevation vs. lake volume relationship for the lakes of interest.

Usage

1
2
3
4
5
6
7
8
plot_elev_area_vol(
  ydata,
  ylabel,
  yscales = scales::scientific,
  title = "",
  lakes = c("Pleasant", "Long", "Plainfield"),
  text_size = 10
)

Arguments

ydata

colname of input data to display, defaults to "level_m" but can also be "area_m2" or "vol_m3"

ylabel

string to display for y-axis title, e.g., "Lake Elevation (m)" or "expression(Lake~Volume~(m^3))"

yscales

type of scaling for y-axis, defaults to scales::scientific Other options include scales::number for decimal notation

title

string to display for title, defaults to "".

lakes

names of lakes to plot, defaults to include all: "c("Pleasant", "Long", "Plainfield")"

text_size

size of text, defaults to 10 pt.

Value

plot_obj - a plot object with aesthetics added


cvoter/isoH2Obudget documentation built on March 29, 2020, 11:07 a.m.