scale_time_webgl() is not a visual ggplot2 scale. It records timeline
metadata for ggplot_webgl() so frame or time values can be normalized into
render$timeline.
Arguments
- source
Timeline column source.
"auto"prefers a builttimecolumn when present and otherwise usesframe.- values
Optional explicit timeline values. When omitted, values are derived from built layer
timeorframecolumns.- mode
Timeline filtering intent:
"exact"or"cumulative".- fps
Optional frames-per-second metadata.
- speed
Positive playback-speed multiplier.
- loop
Whether future playback controls should loop.
- label
Optional timeline label metadata.
- format
Optional display-format metadata.
Examples
df <- data.frame(x = c(0, 1, 2), y = c(0, 1, 0), frame = 1:3)
plot <- ggplot2::ggplot(df, ggplot2::aes(x, y, frame = frame)) +
geom_point_webgl() +
scale_time_webgl(source = "frame", mode = "exact")
plot$ggwebgl$time_scale$source
#> [1] "frame"