Add a rug figure to the chart.
fig_rug( g, ..., strokeOpacity = 0.5, axis = c("x", "y"), sync = TRUE, data = NULL, inherit_asp = TRUE )
g | An object of class |
---|---|
... | Options to pass to the figure, including |
strokeOpacity | Opacity of rug marks. |
axis | Axis to place the rug marks on. |
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
|
Requires the x
and y
aspects.
g2(mtcars, asp(wt, mpg)) %>% fig_point() %>% fig_rug() %>% fig_rug(asp(size = 10), axis = "y")