geom_ribbon: Ribbons, y range with continuous x values

Description Usage See Also Examples

Description

Ribbons, y range with continuous x values

Usage

1
  geom_ribbon(aesthetics = list())

See Also

geom_bar: discrete intervals (bars)

geom_linerange: discrete intervals (lines)

geom_polygon: general polygons

Examples

1
2
3
4
5
height <- runif(10)
df <- data.frame(x = 1:10, ymax = 5 + height, ymin = 5 - height)
geom_plot(geom_ribbon(), df)
geom_plot(geom_ribbon(list(colour = "red")), df)
geom_plot(geom_ribbon(list(colour = "red", fill = NA)), df)

hadley/layers documentation built on May 17, 2019, 10:42 a.m.