| orb_line | R Documentation |
Connects observations in the order they appear, optionally split by a
group or colour mapping.
orb_line(
...,
data = NULL,
width = 1.8,
colour = NULL,
alpha = 1,
smooth = FALSE
)
... |
Aesthetic mappings for this layer only, as |
data |
Optional data frame overriding the plot data. |
width |
Line width in pixels. |
colour |
Fixed colour used when the |
alpha |
Opacity between 0 and 1. |
smooth |
Draw a smoothed curve through the points instead of straight
segments (a Catmull-Rom style spline). Default |
An object of class orb_layer.
df <- data.frame(t = 1:50, v = cumsum(rnorm(50)))
orb(df, x = t, y = v) + orb_line(width = 2, smooth = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.