View source: R/y_axis_unit_labeler.R
y_axis_unit_labeler | R Documentation |
Generate y-axis Label Based on SWMP Parameter Abbreviation
y_axis_unit_labeler(param, user_units)
param |
chr string of variable abbreviation |
user_units |
chr string equal to 'English" or 'SI" |
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.
Returns character vector that can be used as a y-axis label in ggplot2. includes special characters.
## Not run: y_axis_unit_labeler <- y_labeler('do_mgl', 'English') ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.