Style as a ribbon image

style_ribbon(
  data,
  palette = "viridis",
  colour = "order",
  alpha = c(0.3, 0),
  background = "black",
  discard = 0,
  type = "segment",
  ...
)

Arguments

data

data frame with x, y, order, id, time

palette

function generating a palette (or string naming the palette)

colour

name of variable to use to specify the colour aesthetic

alpha

length two numeric, first element is the initial alpha, (optional) second is the decay rate for alpha

background

colour of the background in the plot

discard

how many iterations should we discard before drawing?

type

type of geom to use ("segment", "curve" or "point")

...

arguments to pass to geom

Value

Returns a ggplot2 object