The stacked band plot in this article in this article assumes that the data are in "wide form" (4 variables).…