View source: R/add_map_labels.R View source: R/add_idw_plot_labels.R
add_map_labels | R Documentation |
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.
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"
)
x |
A list containing the ggplot object returned by |
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" |
Returns input list with IDW plot labels added.
Returns input list with IDW plot labels added.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.