plotNormDevHYY: Helper function to plot value deviations from norms for...

View source: R/plotNormDevHYY.R

plotNormDevHYYR Documentation

Helper function to plot value deviations from norms for entire hydrological years and cold and warm seasons.

Description

The function expects a tibble columns 'hyYear' (date), data (dbl), data_cs (dbl) and data_ws (dbl) where hyYear is a date column and data, data_cs and data_ws columns are the values for the entire year, the cold season (Oct. to Mar. in Central Asia) and warm season (Apr. to Sept. in Central Asia). The following dataType(s) are accepted: 'Q' for discharge, 'T' temperature in deg. C. and 'P' for precipitation in mm/year. The data2Plot tibble can easily be produced with the function convert2HYY() that is part of the package.

Usage

plotNormDevHYY(data2Plot, dataType, stationID)

Arguments

data2Plot

tibble

dataType

String, either 'Q' for mean discharge in m3/s, 'T' for temperature in degrees Celsius or 'P' for precipitation in mm/yr.

stationID

String of station name, e.g. 'Khorog-Gunt 17050'

Value

ggplot object

See Also

Other Pre-processing: convert2HYY(), doQuantileMapping(), gen_HRU_Climate_CSV_RSMinerve(), gen_basinElevationBands(), loadTabularData()


hydrosolutions/riversCentralAsia documentation built on Feb. 7, 2023, 4:50 p.m.