View source: R/plot_minmax_compare.R
plot_minmax_compare | R Documentation |
Creates a plot showing the daily minimum and maximum water temperature for 2 monitoring locations. Intended to be used to show the difference between upstream and downstream monitoring locations. Source datafram must have at least 4 columns: Date, station, minimum, and maximum. If only 1 monitoring location is desired, only include the upstream location. Dataframe must be in 'long' format, but with seperate columns for daily minimum and maximum.
plot_minmax_compare(
df,
date_col,
min_col,
max_col,
station_name_col,
grey_station,
red_station = NULL,
spawnstart = NULL,
spawnend = NULL,
crit = NULL,
spawn_crit = NULL
)
df |
Dataframe of data to be graphed |
date_col |
Name of date column |
min_col |
Name of daily minimum column |
max_col |
name of daily maximum column |
station_name_col |
name of station column |
grey_station |
Station that will be graphed in grey |
red_station |
Station that will be graphed in red |
spawnstart |
Optional start of spawning season |
spawnend |
Optional end of spawning season |
crit |
Optional non-spwaning crietria |
spawn_crit |
= Optional spawning season criteria |
plot showing daily min and max 7DADM temperatures, comparied upstream with downstream
## Not run:
plot_minmax_compare(df = minmax, date_col = "SampleStartDate",
min_col = "Minimum", max_col = "Maximum", station_name_col = "Station",
grey_station = "Downstream", red_station = "Upstream", crit = 20)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.