plot_magnitude: Plot distribution of inputed lake levels

Description Usage Arguments Value

View source: R/plot_magnitude.R

Description

Given a data frame with lake levels for a single lake or multiple lakes, plot the distribution (density) of estimated lake levels. If data frame has multiple lakes, will display as facet plots. Options to add xintercepts.

Usage

1
2
3
4
5
6
7
8
9
plot_magnitude(
  df,
  lakes = c("Pleasant", "Long", "Plainfield"),
  convert_to_ft = TRUE,
  title = "",
  text_size = 12,
  pfl_is_long = TRUE,
  force_range = TRUE
)

Arguments

df

a data frame with columns for "lake", "date", and "level".

lakes

vector of lakes to include in plot. Defaults to c("Pleasant", "Long", "Plainfield")

convert_to_ft

defaults to TRUE to convert lake levels from meters to ft

title

string to use for title of plot, defaults to "".

text_size

size of text, defaults to 12

pfl_is_long

defaults to TRUE to force the y-limits of plainfield lake to the same as long lake.

force_range

defaults to TRUE to force y-limits of all subplots to be the same.

Value

plot_obj, a plot with the distribution(s) of estimated lake elevation


WDNR-Water-Use/CSLSlevels documentation built on Nov. 21, 2020, 9:13 a.m.