R/plotArea.R

Defines functions plotArea

Documented in plotArea

plotArea <- function(area, col) {
  if (!is.list(area)) stop("'area' must be a ist of 4 elements as produced by 'get.area()'")
  
  col <- c(rgb(0, 0, 0, 0), col)
  
  image(area$Lon, area$Lat, area$Area, col = col, add = TRUE)
}

Try the marmap package in your browser

Any scripts or data that you put into this service are public.

marmap documentation built on March 31, 2023, 6:59 p.m.