View source: R/location_code_to_factor.r
location_code_to_factor | R Documentation |
Makes a factor with a label from a vector of location codes
location_code_to_factor( x, label = fhiplot::config$location_code_to_factor_label, label_if_not_unique = fhiplot::config$location_code_to_factor_label_if_not_unique, reference = fhidata::norway_locations_names(), direction = 1 )
x |
A vector of location codes |
label |
The label of the elements in the new factor |
label_if_not_unique |
The label of elements that are not unique |
reference |
Where you get your data |
direction |
-1 is reverse |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.