View source: R/code_manipulation.R
code_manipulation | R Documentation |
Code manipulation for ouput use in the graphic legend, color or modalities display.
code_manipulation(data, referential, manipulation)
data |
vector or factor expected. In practice you can provide all your data with duplicate values and let the function do the rest. |
referential |
character expected. Referential name. Take a look in the section below to see referential available. |
manipulation |
character expected. Type of output expected. You can choose between "legend", "modality" and "color". |
So far, referential available are:
country: code, name and color of countries
ocean: code, name and color of oceans
vessel_simple_type: code, name and color of simplified vessel type
specie: code, name and color of species
The function return ggplot R object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.