Data visualizations can have personality and that’s OK
05:00

geom_polygon()geom_shape() exist
(geom_mark_*() is not yet marquee-aware)
geom_segment() / geom_path()# Lets make some data
lines <- data.frame(
x = c(5, 12, 15, 9, 6),
y = c(17, 20, 4, 15, 5),
xend = c(19, 17, 2, 9, 5),
yend = c(10, 18, 7, 12, 1),
width = c(1, 10, 6, 2, 3),
colour = letters[1:5]
)
ggplot(
lines,
aes(x = x, y = y, xend = xend, yend = yend)
) +
geom_link(
aes(
colour = colour,
alpha = after_stat(index),
linewidth = after_stat(index)
)
)
05:00
Defines the temporal interpretation of the data
Controls how position scales changes
Allows the display of data from other frames
Defines the shape of the interpolation
Controls how data move in and out of the animation
05:00