plot_vari | R Documentation |
Extracts modelled water temperature from netcdf file and plots it using long_heatmap function
plot_vari(ncdf, var, incl_time = TRUE, ...)
ncdf |
filepath; to the netCDF file to extract variable |
var |
character; Name of the variable to be extracted. Must match short name in netCDF file |
incl_time |
boolean; Add time to the first column in the dataframe. Defaults to TRUE |
... |
other arguments to be passed to long_heatmap |
ggplot object; filled point plot of water temperature
sim_folder <- system.file('extdata', package = 'GOTMr')
run_gotm(sim_folder)
out <- file.path(sim_folder, 'output', 'output.nc')
plot_vari(ncdf = out, var = 'temp')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.