geom_widerect: ggplot2 geom with ymin and ymax aesthetics that covers the...

View source: R/z_geoms.R

geom_widerectR Documentation

ggplot2 geom with ymin and ymax aesthetics that covers the entire x range, useful for clickSelects background elements.

Description

ggplot2 geom with ymin and ymax aesthetics that covers the entire x range, useful for clickSelects background elements.

Usage

geom_widerect(
  mapping = NULL,
  data = NULL,
  stat = "identity",
  position = "identity",
  ...,
  na.rm = FALSE,
  show.legend = NA,
  inherit.aes = TRUE
)

Arguments

mapping

aesthetic mapping

data

data set

stat

statistic mapping, defaults to identity

position

position mapping, defaults to identity

...

other arguments

na.rm

remove missing values?

show.legend

TRUE OR FALSE

inherit.aes

TRUE OR FALSE

Value

ggplot2 layer

Examples

 ## Not run:  
   source(system.file("examples/WorldBank.R", package = "animint"))
 
## End(Not run)

animint2 documentation built on Nov. 22, 2023, 1:07 a.m.