plot_compare_stage: Plot simulated and observed stage data

View source: R/plot_compare_stage.R

plot_compare_stageR Documentation

Plot simulated and observed stage data

Description

Plot simulated and observed stage data

Usage

plot_compare_stage(nc_file, field_file, fig_path = NULL, ...)

Arguments

nc_file

NetCDF model output file

field_file

CSV or TSV field data file (see resample_to_field for format)

fig_path

Default is NULL (only plots to screen). Enter string path to save as output file. File type can be anything supported by ggplot2:ggsave. See examples.

...

additional arguments passed to ggsave()

Examples


sim_folder <- run_example_sim(verbose = FALSE)
nc_file <- file.path(sim_folder, 'output/output.nc')

field_file <- file.path(sim_folder, 'LakeMendota_stage_USGS05428000.csv')

plot_compare_stage(nc_file, field_file) ##makes a plot!


USGS-R/glmtools documentation built on March 26, 2024, 5:43 p.m.