profileHeatMap: Profile heat map plot

View source: R/profileHeatMap.r

profileHeatMapR Documentation

Profile heat map plot

Description

Plots a lake profile heatmap for a single site and parameter.

Usage

profileHeatMap(
  data,
  parameter,
  depth = "Depth_m",
  param_units,
  depth_units = "m",
  date = "ActivityStartDate",
  show_dates = TRUE,
  min_date = min(data[, date], na.rm = T),
  max_date = max(data[, date], na.rm = T),
  param_lab = "pH",
  criteria
)

Arguments

data

Lake profile data (wide format)

parameter

Column name for parameter to be used as z-values.

depth

Column name for depth column.

param_units

Character. Parameter units. Used to plot build label.

depth_units

Character. Depth units. Used to plot build label.

date

Date column name. Must be in 'YYYY-mm-dd' format.

show_dates

Logical. If TRUE (default), show individual profile dates on plot x-axis.

min_date

Minimum plot date. 'YYYY-mm-dd' format.

max_date

Maximum plot date. 'YYYY-mm-dd' format.

param_lab

Character. Label to be used for parameter name. Used to build plot label.

criteria

Vector of criteria values to be used as contours on heatmap plot. If not specified, contours from 0-30 at increments of 5 are drawn.


utah-dwq/udwqTools documentation built on July 17, 2024, 10:21 p.m.