Code manipulation for ouput use in the graphic legend, color or modalities display.
code_manipulation(data, referential, manipulation)
vector or factor expected. In practice you can provide all your data with duplicate values and let the function do the rest.
character expected. Referential name. Take a look in the section below to see referential available.
character expected. Type of output expected. You can choose between "legend", "modality" and "color".
The function return ggplot R object.
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