Reproject and add an object to an existing SOmap
or SOmap_auto
.
SOplot(x, y = NULL, target = NULL, ..., source = NULL, add = TRUE)
: longitude vector, or an object with coordinates
: latitude vector, or missing if x is an object
: 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
: if x
is not an object with a projection already set, specify its projection here (default = longlat)
logical: if TRUE
, add this object to an existing plot
if (FALSE) { # \dontrun{
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)
} # }