Add an interval figure.
fig_interval(g, ..., sync = TRUE, data = NULL, inherit_asp = TRUE)
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
|
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()