add_map_labels: Add labels to IDW plots

View source: R/add_map_labels.R View source: R/add_idw_plot_labels.R

add_map_labelsR Documentation

Add labels to IDW plots

Description

Select which place labels should be included on the map based on category and region. Currently supports regions: 'bs.all' and 'bs.south'. See data/placenames for the default list of locations.

Select which place labels should be included on the map based on category and region. Currently supports regions: 'bs.all' and 'bs.south'. See data/placenames for the default list of locations.

Usage

add_map_labels(
  x,
  lab.select = c("islands", "bathymetry", "convention line", "mainland", "peninsula"),
  region = NA,
  new.places = NULL,
  lab.replace = FALSE,
  transform.new.places = TRUE,
  add.scale.bar = "br"
)

add_map_labels(
  x,
  lab.select = c("islands", "bathymetry", "convention line", "mainland", "peninsula"),
  region = NA,
  new.places = NULL,
  lab.replace = FALSE,
  transform.new.places = TRUE,
  add.scale.bar = "br"
)

Arguments

x

A list containing the ggplot object returned by make_idw_map() or change_fill_color(). Alternatively, a gg object.

lab.select

A vector indicating which types of labels to include on the map.

region

Vector indicating the plotting region. Only specify if x is a gg object.

new.places

A data frame containing new locations and labels to add to the map.

lab.replace

Logical indicating whether new.places should be added to the default labels or replace the default labels.

transform.new.places

Logical indicating whether the data frame passed to new.places should be transformed to match the map projection.

add.scale.bar

A character vector indicating where to add the scale bar. "br" for bottom right, "tl" for top left, etc. Default = "br"

Value

Returns input list with IDW plot labels added.

Returns input list with IDW plot labels added.


afsc-gap-products/akgfmaps documentation built on April 14, 2025, 7:13 p.m.