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.
p |> scroll_x()
p |> scroll_y()
p |> scroll_x() |> scroll_y()