Skip to contents

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 minimum and maximum temperature values to be plotted.

Usage

plot_check_temp(data, dates, temperature, temp_min = 0, temp_max = 25)

Arguments

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.

Value

A object of class "gg" and "ggplot" that can be printed to the console or saved as an image.

Examples

library(hatchR)
plot_check_temp(
  data = crooked_river,
  dates = date,
  temperature = temp_c
)