geom_step: Connect observations with stairs.

Description Usage Arguments See Also Examples

Description

Equivalent to plot(type='s').

Usage

1
  geom_step(aesthetics = list(), direction = "hv")

Arguments

direction

= "direction of stairs: 'vh' for vertical then horizontal, or 'hv' for horizontal then vertical"

See Also

Other line.geoms: geom_line, geom_path, geom_segment

Examples

1
2
3
df <- data.frame(x = 1:10, y = 1:10)
geom_plot(geom_step(), df)
geom_plot(geom_step(direction = "vh"), df)

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