plot_vari: Plot any variable from netcdf file

View source: R/plot_vari.R

plot_variR Documentation

Plot any variable from netcdf file

Description

Extracts modelled water temperature from netcdf file and plots it using long_heatmap function

Usage

plot_vari(ncdf, var, incl_time = TRUE, ...)

Arguments

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

Value

ggplot object; filled point plot of water temperature

Examples

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')

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