long_heatmap | R Documentation |
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.
long_heatmap(
data,
title = "Heatmap",
ylim = NULL,
xlim = NULL,
size = 1,
zlab = "",
...
)
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 |
Plot of interpolated heatmap
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')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.