R/layer_type.R

Defines functions layer_type.StatContour layer_type.Stat layer_type.GeomSf layer_type.GeomPolygon layer_type.GeomSmooth layer_type.GeomRibbon layer_type.GeomPath layer_type.default layer_type

Documented in layer_type

#' Define what graphical type a layer is
#'
#' @param x a Layer, Geom, or Stat
#' @keywords internal
#' @export
layer_type <- function(x) UseMethod('layer_type')
#' @export
layer_type.default <- function(x) NULL
#' @export
layer_type.GeomPath <- function(x) 'path'
#' @export
layer_type.GeomRibbon <- function(x) 'path'
#' @export
layer_type.GeomSmooth <- function(x) 'path'
#' @export
layer_type.GeomPolygon <- function(x) 'polygon'
#' @export
layer_type.GeomSf <- function(x) 'sf'
#' @export
layer_type.Stat <- function(x) NULL
#' @export
layer_type.StatContour <- function(x) 'path'

Try the gganimate package in your browser

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

gganimate documentation built on May 29, 2024, 2:58 a.m.