Connects observations in the order they appear, optionally split by a
group or colour mapping.
Arguments
- ...
Aesthetic mappings for this layer only, as
channel = column.- data
Optional data frame overriding the plot data.
- width
Line width in pixels.
- colour
Fixed colour used when the
colourchannel is not mapped.- alpha
Opacity between 0 and 1.
- smooth
Draw a smoothed curve through the points instead of straight segments (a Catmull-Rom style spline). Default
FALSE.
Examples
df <- data.frame(t = 1:50, v = cumsum(rnorm(50)))
orb(df, x = t, y = v) + orb_line(width = 2, smooth = TRUE)
#> <orb_spec>
#> data: 50 rows x 2 columns
#> mapping: x, y
#> layers: line