Code manipulation for ouput use in the graphic legend, color or modalities display.

code_manipulation(data, referential, manipulation)

Arguments

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".

Value

The function return ggplot R object.

Details

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