Function for adding management layers to SOmap
SOmanagement(
ccamlr = FALSE,
ccamlr_labels = FALSE,
ssru = FALSE,
ssru_labels = FALSE,
ssmu = FALSE,
ssmu_labels = FALSE,
rb = FALSE,
rb_labels = FALSE,
sprfmorb = FALSE,
trim = -45,
eez = FALSE,
eez_labels = FALSE,
mpa = FALSE,
mpa_labels = FALSE,
iwc = FALSE,
iwc_labels = FALSE,
domains = FALSE,
domains_labels = FALSE,
rb_col = "green",
sprfmo_col = "grey50",
ccamlr_col = "red",
ssru_col = "grey50",
ssmu_col = "grey70",
eez_col = "maroon",
mpa_col = "yellow",
iwc_col = "blue",
domains_col = "magenta",
basemap
)
logical: if TRUE
, insert the CCAMLR area boundaries.
logical: if TRUE
, add labels for the CCAMLR areas.
logical: if TRUE
, insert the CCAMLR small scale research unit boundaries.
logical: if TRUE
, add labels for the CCAMLR small scale research units.
logical: if TRUE
, insert the CCAMLR small scale management unit boundaries.
logical: if TRUE
, add labels for the CCAMLR small scale management units.
logical: if TRUE
, insert the CCAMLR research block boundaries.
logical: if TRUE
, add labels for the CCAMLR research blocks.
logical: if TRUE
, insert the SPRFMO toothfish research block boundaries.
numeric: latitude to trim the map to. Set this to -10 for effectively no trim.
logical: if TRUE
, insert Exclusive Economic Zones.
logical: if TRUE
, add labels for the Exclusive Economic Zones.
logical: if TRUE
, insert CCAMLR Marine Protected Areas.
logical: if TRUE
, add labels for the CCAMLR Marine Protected Areas.
logical: if TRUE
, insert International Whaling Commission boundaries.
logical: if TRUE
, add labels for the International Whaling Commission areas.
logical: if TRUE
, insert CCAMLR Marine Protected Areas planning domains.
logical: if TRUE
, add labels for the CCAMLR Marine Protected Area planning domains.
character: colour for CCAMLR research blocks.
character: colour for SPRFMO toothfish research blocks
character: colour for CCAMLR boundaries
character: colour for CCAMLR small scale research units.
character: colour for CCAMLR small scale management units.
character: colour for Exclusive Economic Zone boundaries.
character: colour for CCAMLR Marine Protected Areas.
character: colour for IWC boundaries.
character: colour for the CCAMLR planning domains boundaries.
SOmap or SOmap_auto: optional map object to extract extent, projection, and other information from.
An object of class "SOmap_management" containing the requested management layers. Printing or plotting this object will display those layers on the current map (note that an SOmap
object needs to have been plotted first)
if (FALSE) { # \dontrun{
tfile <- tempfile("SOmap", fileext = ".png")
png(tfile, width=22, height=20, units='cm', res=600)
SOmap(trim = -45)
SOmanagement(ccamlr = TRUE, ccamlr_labels = TRUE, trim=-45)
dev.off()
unlink(tfile)
## map with non-default latitudinal extent
SOmap(trim = -55)
## either provide the same extent via 'trim'
SOmanagement(ccamlr = TRUE, ccamlr_labels = TRUE, trim = -55)
## or equivalently, pass the basemap to SOmanagement
x <- SOmap(trim = -55)
plot(x)
SOmanagement(ccamlr = TRUE, ccamlr_labels = TRUE, basemap = x)
} # }