Latitude mask for polar projections; written by M.D. Sumner and part of the spex package.

latmask(x, latitude = 0, southern = TRUE)

Arguments

x

A raster layer.

latitude

maximum latitude (effectively a minimum latitude if southern = FALSE)

southern

flag for whether south-polar context is used, default is TRUE

Examples

if (FALSE) { # \dontrun{
## assumes that you have already defined a raster object called 'ice'
plot(latmask(ice, -60))
} # }