Description Usage Arguments Value
View source: R/plot_lake_level.R
This function creates a plot object that showcases lake levels (as levels, areas, or volumes) over time for each lake of interest.
1 2 3 4 5 6 7 8 9 10 | plot_lake_level(
ydata = "level_m",
ylabel = "Lake Elevation (m)",
yscales = scales::number,
title = "",
lakes = c("Pleasant", "Long", "Plainfield"),
date_intervals = "6 months",
date_formats = "%b '%y",
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::number. Other options include scales::scientific for scientific notation |
title |
string to display for title, defaults to "". |
lakes |
names of lakes to plot, defaults to include all: "c("Pleasant", "Long", "Plainfield")" |
date_intervals |
string with desired break interval for dates, defaults to "6 months". |
date_formats |
string with desired formatting for date labels, defaults to "%b '%y" for "Oct '19"-type formatting. |
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.