Scrollbars

library(gglite)
df = data.frame(x = 1:100, y = cumsum(rnorm(100)))
p  = g2(df, y ~ x) |> mark_line()

Scrollbars allow users to scroll through data that extends beyond the visible chart area.

1 Scrollbar on X

p |> scroll_x()

2 Scrollbar on Y

p |> scroll_y()

3 Scrollbar on Both Axes

p |> scroll_x() |> scroll_y()