plot_map.RdA lower-level plotting helper that turns a polygon/value table, or the list returned by `map_ereefs(..., return_poly = TRUE)`, into a `ggplot2` map.
plot_map(
datapoly,
var_longname = "",
var_units = "",
land_map = FALSE,
scale_col = "viridis",
scale_lim = c(NA, NA),
plot_style = c("polygon", "smooth"),
smooth_pixels = 600,
box_bounds = c(NA, NA, NA, NA),
label_towns = TRUE,
zoom = 6,
p = NA,
suppress_print = NULL,
gbr_poly = FALSE,
Land_map = NULL
)Polygon/value table in the format used internally by the package, or a list returned by `map_ereefs(..., return_poly = TRUE)`.
Optional long name for the plot title.
Optional units label.
Logical; add a simple land underlay where available.
Colour scale specification. Defaults to `"viridis"` for scalar maps.
Numeric colour limits. If left as `NA`, limits are inferred from the data.
Either `"polygon"` or `"smooth"`.
Resolution used for `"smooth"` display maps.
Optional bounds in the form `c(longitude_min, longitude_max, latitude_min, latitude_max)`.
Logical; add town labels where available.
Deprecated legacy argument retained for backward compatibility.
Optional existing plot object to add to.
Deprecated and ignored. Plotting functions now follow normal `ggplot2` behavior: assign the returned object to suppress automatic console printing.
Logical; add GBR polygon overlay when available.
Deprecated compatibility alias for `land_map`.
A `ggplot2` object.