y_axis_unit_labeler: Generate y-axis Label Based on SWMP Parameter Abbreviation

View source: R/y_axis_unit_labeler.R

y_axis_unit_labelerR Documentation

Generate y-axis Label Based on SWMP Parameter Abbreviation

Description

Generate y-axis Label Based on SWMP Parameter Abbreviation

Usage

y_axis_unit_labeler(param, user_units)

Arguments

param

chr string of variable abbreviation

user_units

chr string equal to 'English" or 'SI"

Details

A helper function used internally by several plotting functions to generate y-axis labels. This function does not convert sample results from metric to english. It only adjusts the units in the y-axis label.

Value

Returns character vector that can be used as a y-axis label in ggplot2. includes special characters.

Examples

## Not run: 
y_axis_unit_labeler <- y_labeler('do_mgl', 'English')

## End(Not run)


LimnoTech/SWMPrStorm documentation built on June 14, 2022, 6:27 p.m.