long_heatmap: Create heatmap from dataerved files for acpy

View source: R/long_heatmap.R

long_heatmapR Documentation

Create heatmap from dataerved files for acpy

Description

This function runs creates an interpolated heatmap from ACPy input files. The level of interpolation can be adjusted to increase the accuracy of the plot.

Usage

long_heatmap(
  data,
  title = "Heatmap",
  ylim = NULL,
  xlim = NULL,
  size = 1,
  zlab = "",
  ...
)

Arguments

data

dataframe; dataervations loaded with load.data

title

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

ylim

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

xlim

vector; Limits for the x-axis. Defaults to range of values in the data

Value

Plot of interpolated heatmap

Examples

sim_folder <- system.file('extdata', package = 'GOTMr')
run_gotm(sim_folder)
out <- file.path(sim_folder, 'output', 'output.nc')
wtemp <- get_vari(ncdf = out, var = 'temp')
z <- get_vari(ncdf = out, var = 'z')
df <- wide2long(data = wtemp, depths = z)
long_heatmap(data = df, title = 'Feeagh simulated temp', zlab = 'degC')

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