Description Usage Arguments Value
View source: R/plot_elev_area_vol.R
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.
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
)
|
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. |
plot_obj - a plot object with aesthetics added
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.