Description Usage Arguments Details Examples
Add a ribbon figure to the chart.
1 2 3 4 5 6 7 8 |
g |
An object of class |
... |
Options to pass to the figure, including |
sync |
Whether to sync the axis data (align) with that
used in other figures, set to |
data |
A dataset ( |
inherit_asp |
Whether to inherit the aspects paseed to
|
alias |
Name of the range to display on tooltips, labels, etc. |
Requires the ymin
and ymax
aspects.
1 2 3 4 5 6 7 8 | df <- data.frame(
x = 1:100,
ymin = runif(100, 1, 5),
ymax = runif(100, 6, 13)
)
g2(df, asp(x, ymin = ymin, ymax = ymax)) %>%
fig_ribbon()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.