R/plot.GK.R

Defines functions plot.GK

Documented in plot.GK

#' Plot a GK object
#'
#' Given a fitted model by the Guatier-Kitamura procedure plot the estimated density contours
#'
#' @param  x is the fitted GK object
#' @param  ... other arguments to pass to \code{contour}, notably e.g. \code{add = TRUE}
#' @return nothing (invisibly)
#' @importFrom graphics contour
#' @export
plot.GK <- function(x, ...){
    contour(x$u, x$v, matrix(x$w,length(x$u), length(x$v)), ...)
}

Try the RCBR package in your browser

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

RCBR documentation built on Nov. 8, 2023, 5:08 p.m.