View source: R/plot_diff_box.R
plot_diff_box | R Documentation |
Crates a monthly boxplot distribution of the daily difference between upsteam and downstream temperatures (station1 - station2). Allows for filtering based on upstream temperature >= temp_filter. Data source is AWQMS.
plot_diff_box(
df,
station_1,
station_2,
station_col = "MLocID",
Date_col = "SampleStartDate",
Result_col = "Result_Numeric",
temp_filter = NULL
)
df |
datafram of data to compare |
station_1 |
Name of first station (Upstream?) |
station_2 |
Name of second station (Downstream?) |
station_col |
Name of column containing the location data. Must be in quotes. |
Date_col |
Name of column containing the date. Must be in quotes. |
Result_col |
Name of column containing the results. Must be in quotes. |
temp_filter |
optional filter for upstream temperature. Plot will only display station_1 temps >= temp_filter. |
boxplot showing difference between upstream and downstream temperatures
plot_diff_box(df = dataframe,
station_1 = "14046778",
station_2 = "14034470",
station_col = "MLocID",
Date_col = "SampleStartDate",
Result_col= "Result_Numeric",
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.