R/plot.mvkde.q

plot.mvkde <- function(x, y, ...)
{
  if(x$d != 2)
    stop("plot.mvkde can only be used with 2 dimensional data")

  image.mvlinbin(x, ...)
  contour.mvkde(x, add = TRUE, ...)

  if(!is.null(var.names <- colnames(x$linbin$axes))) {
    dot.names <- names(list(...))
    if(!("xlab" %in% dot.names))
      mtext(var.names[1], side = 1, line = par("mgp")[1])
    if(!("ylab" %in% dot.names))
      mtext(var.names[2], side = 2, line = par("mgp")[1])
  }

  invisible()
}

Try the bpkde package in your browser

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

bpkde documentation built on May 2, 2019, 6:07 p.m.