gotm_heatmap: Create heatmap from GOTM output

View source: R/gotm_heatmap.R

gotm_heatmapR Documentation

Create heatmap from GOTM output

Description

This function runs creates an interpolated heatmap from GOTM text output. It loads in a water temp file generated by GOTM. It requires the depth '_z.txt' file also output from GOTM to assign the depths to each measurement. The level of interpolation can be adjusted to increase the accuracy of the plot.

Usage

gotm_heatmap(
  data,
  depths,
  res = 100,
  title = "Heatmap",
  points = FALSE,
  rev.y.ax = FALSE,
  surface = FALSE,
  fixed.level = TRUE,
  facet = FALSE,
  ylim = NULL,
  zlab = "",
  ...
)

Arguments

data

dataframe; values loaded with load.3d

depths

dataframe; depths loaded with load.depths

res

numeric; Resolution of the approximated surface along the x/y axis. Defaults to 100

title

character; Title of the graph. Defaults to 'Heatmap'

points

logical; Plot points of measured temp. Defaults to FALSE

rev.y.ax

logical; Reverse y axis. Defaults to FALSE

surface

logical; Plot surface level of the lake. Defaults to TRUE

fixed.level

logical; If the lake level is a fixed elevation

facet

logical; option to plot a facet grid of the year data. Defaults to FALSE

ylim

vector; Limits for the y-axis. Defaults to range of depths in the data

zlab

character; Label for the Z axis

Value

Plot of interpolated heatmap


aemon-j/gotmtools documentation built on April 12, 2024, 4:35 p.m.