geom_path: Connect observations, in original order.

Description Usage Arguments See Also Examples

Description

Lines containing less than two observations will be silently dropped.

Usage

1
2
3
  geom_path(aesthetics = list(), arrow = NULL,
    lineend = "butt", linejoin = "round", linemitre = 1,
    na.rm = FALSE)

Arguments

lineend

Line end style (round, butt, square)

linejoin

Line join style (round, mitre, bevel)

linemitre

Line mitre limit (number greater than 1)

arrow

Arrow specification, as created by ?arrow

See Also

Other line.geoms: geom_line, geom_segment, geom_step

Examples

1
2
3
4
5
6
df <- data.frame(x = sample(1:10), y = sample(1:10))
geom_plot(geom_path(), df)
geom_plot(geom_path(list(colour = "red")), df)
geom_plot(geom_path(list(size = 3)), df)

geom_plot(geom_path(list(x = 1:10, y = 10:1)))

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