addLabels | R Documentation |
Given a data.frame, use the 'standard_name' and 'units' attributes of columns in that data.frame to add 'label' attributes that can be used for axis titles in plots.
addLabels(.Data)
.Data |
A Ranadu-style data.frame containing column vectors of measurements, with attributes. Some subsetting removes these attributes, so it may be necessary to use "transferAttributes()" to preserve them. |
Constructs an appropriate label for the variable, combining the "measurand" and "units" attributes, often with translation to descriptive labels that seem more appropriate. plotWAC() uses these label attributes, possibly with translation to expressions where appropriate. Attributes including "standard_name" and "units" should be present for this to work. This function is called by getNetCDF() and getProjectData() when they construct data,franes from netCDF-format files.
William Cooper
addLabels (RAFdata)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.