R/draw-key.R

Defines functions draw_key_acf

Documented in draw_key_acf

#' Key drawing functions
#'
#' @inheritParams ggplot2::draw_key_point
#'
#' @return A grid grob
#'
#' @keywords internal
#' @name draw-key
NULL

#' @rdname draw-key
#' @export
draw_key_acf <- function(data, params, size) {
  grobTree(
    draw_key_rect(data, params),
    if (!is.null(params$level)) draw_key_path(data, params)
  )
}

Try the sugrrants package in your browser

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

sugrrants documentation built on Jan. 13, 2021, 5:06 a.m.