Reproject and add an object to an existing SOmap or SOmap_auto.

SOplot(x, y = NULL, target = NULL, ..., source = NULL, add = TRUE)

Arguments

x

: longitude vector, or an object with coordinates

y

: latitude vector, or missing if x is an object

target

: target projection. If not provided, it will default to the projection of the current map, and if that is not set it will use the default SOmap polar stereographic projection

...

: other parameters passed to the plot function

source

: if x is not an object with a projection already set, specify its projection here (default = longlat)

add

logical: if TRUE, add this object to an existing plot

Examples

if (FALSE) {
  x <-c (-70, -60,-50, -90)
  y <-c (-50, -75, -45, -60)
  map <- SOmap_auto(x, y, input_lines = FALSE)

  ## plot the map, with the x, y points already added
  map
  ## re-plot the points in a different colour and marker
  SOplot(x = x, y = y, pch = 0, cex = 2, col = 6)
}