R/contour.R

setGeneric("contour", function(x, ...) standardGeneric("contour"))
setMethod(
  f = "contour",
  signature = c(x = ".UD"),
  definition = function(x, ...) {
    x <- getVolumeUD(x)
    callNextMethod()
  }
)


setMethod(
  f = "contour",
  signature = c(x = ".UDStack"),
  definition = function(x, ...) {
    graphics::par(mfrow = rep(ceiling(sqrt(nlayers(x))), 2))
    lapply(split(x), contour, ...)
  }
)

Try the move package in your browser

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

move documentation built on July 9, 2023, 6:09 p.m.