Stacked areas centered on a wiggle baseline rather than zero, which keeps every band's thickness readable as it changes over time.

geom_stream(mapping = NULL, data = NULL, alpha = NULL)

Arguments

mapping, data

Standard layer overrides. Map time to x, value to y, and the series to color.

alpha

Band opacity.

Value

A Layer to add with +.

Examples

d <- data.frame(
  t = rep(1:6, 3),
  v = c(2, 4, 6, 5, 3, 2, 1, 3, 5, 8, 6, 4, 5, 4, 3, 4, 6, 7),
  grp = rep(c("a", "b", "c"), each = 6)
)
ggnext(d, aes(t, v, color = grp)) + geom_stream() + theme_minimal()
#> <ggnext plot>
#>   data:  18 x 3
#>   aes:   x = t, y = v, color = grp
#>   layers: 1 
#>   coord: cartesian
#>   mode:  static