plot_diff_box: plot_diff_box

View source: R/plot_diff_box.R

plot_diff_boxR Documentation

plot_diff_box

Description

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.

Usage

plot_diff_box(
  df,
  station_1,
  station_2,
  station_col = "MLocID",
  Date_col = "SampleStartDate",
  Result_col = "Result_Numeric",
  temp_filter = NULL
)

Arguments

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.

Value

boxplot showing difference between upstream and downstream temperatures Plot

Examples

 plot_diff_box(df = dataframe,
  station_1 = "14046778",
  station_2 =  "14034470",
  station_col = "MLocID",
  Date_col = "SampleStartDate",
  Result_col= "Result_Numeric",

TravisPritchardODEQ/TMDLMrkdwn documentation built on Jan. 17, 2024, 5:32 a.m.