View source: R/profileHeatMap.r
profileHeatMap | R Documentation |
Plots a lake profile heatmap for a single site and parameter.
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
)
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.