November 2017
Beginner
316 pages
6h 40m
English
Ribbon plots are made by drawing two path plots of N points each, and connecting the two paths by a sheet made of N triangles, Just to add, a ribbon does not have to be of a constant width.
In Vega, we have a function named ribbonplot, which helps us create ribbon plots. A simple example of this is illustrated as follows:
x = [0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9]y = rand(1:100,20)g = [0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1]a = ribbonplot(x = x, ylow = 0.9y, yhigh=1.1y, group = g)

Read now
Unlock full access