View source: R/plot_check_temp.R
plot_check_temp | R Documentation |
The plot_check_temp
function is used to plot imported data to check
temperature values. The function takes a data frame with dates and
temperature values, and plots the temperature values over time. The
function also allows users to specify the visual thresholds for minimum and maximum temperature
values to be plotted.
plot_check_temp(data, dates, temperature, temp_min = 0, temp_max = 25)
data |
A data.frame, or data frame extension (e.g. a tibble). |
dates |
Vector of dates for temperature measurements. Must be date or date-time class. |
temperature |
Vector of temperature values. |
temp_min |
Threshold for lower range of expected temperature. Default is 0. |
temp_max |
Threshold for upper range of expected temperature. Default is 25. |
A object of class "gg" and "ggplot" that can be printed to the console or saved as an image.
library(hatchR)
plot_check_temp(
data = crooked_river,
dates = date,
temperature = temp_c
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.