Create a new Covariate for adding to an NGCHM auxilary dataset.
Source:R/functions.R
chmNewCovariate.Rd
This function creates a new Covariate suitable for a covariate bar or attaching to an NGCHM auxilary dataset.
Arguments
- fullname
The full (human readable) name of the covariate.
- values
A named vector of values (character, logical, or numeric).
- value.properties
An ngchmColormap mapping values to properties.
- type
The string "discrete" or the string "continuous". (Defaults to continuous for numeric values, to discrete otherwise.)
- covabbv
The short R-compatible identifier used to identify the covariate (derived from fullname if not specified).