plot_meteo: Plot meterological drivers from a csv file

View source: R/plot_meteo.R

plot_meteoR Documentation

Plot meterological drivers from a csv file

Description

Plot meterological drivers from a csv file

Usage

plot_meteo(met_file, xmin = NA, xmax = NA, fig_path = NULL, ...)

Arguments

met_file

Options: 1) file path to glm2.nml file. Date limits pulled from .nml file 2) file path to .csv file. csv file in wide format. First column is Date, additional columns are meteorological paramters. 3) data.frame object in wide format. First column is Date, additional columns are meteorological paramters.

xmin

Optional, start date for xaxis. Formatted as same date format as meteo file.

xmax

Optional, end date for xaxis. Formatted as same date format as meteo file.

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 ggplot2:ggsave

Author(s)

Jordan S. Read, Luke A. Winslow

See Also

read_nml

Examples

met_file <- system.file("extdata", "LakeMendota_NLDAS.csv", package = "glmtools")
plot_meteo(met_file)

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