Description Usage Arguments Examples
Add an interval figure.
1 |
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
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | g2(sleep, asp(ID, extra, color = group)) %>%
fig_interval()
df <- data.frame(
cat = letters[1:5],
value = c(0.15, .3, .65, .75, .9)
)
g2(df, asp(cat, value, color = cat, shape = "funnel")) %>%
fig_interval(adjust("symmetric")) %>%
coord_type("rect") %>%
coord_transpose() %>%
coord_scale(-1, 1) %>%
axis_hide()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.