| orb_area | R Documentation |
Fills the region between a line and a baseline.
orb_area(
...,
data = NULL,
fill = NULL,
alpha = 0.45,
baseline = 0,
smooth = FALSE
)
... |
Aesthetic mappings for this layer only, as |
data |
Optional data frame overriding the plot data. |
fill |
Fixed fill used when the |
alpha |
Opacity between 0 and 1. |
baseline |
Value the area is filled down to (default 0). |
smooth |
Draw a smoothed upper boundary. Default |
An object of class orb_layer.
df <- data.frame(t = 1:40, v = abs(cumsum(rnorm(40))))
orb(df, x = t, y = v) + orb_area(alpha = 0.5) + orb_line()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.