geom_segment: Single line segments.

Description Usage Arguments See Also Examples

Description

Single line segments.

Usage

1
  geom_segment(aesthetics = list(), arrow = NULL)

Arguments

arrow

specification for arrow heads, as created by arrow()

See Also

Other line.geoms: geom_line, geom_path, geom_step

Examples

1
2
3
4
5
6
7
df <- data.frame(x = runif(20), y = runif(20))
df <- transform(df,
  xend = x + rnorm(20, sd = 1/5),
  yend = y + rnorm(20, sd = 1/5))
geom_plot(geom_segment(), df)
geom_plot(geom_segment(), df, munch = TRUE)
geom_plot(geom_segment(arrow = arrow()), df)

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