Skip to content

Instantly share code, notes, and snippets.

@mattm
Created April 19, 2017 12:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattm/77ee0be38257b8b20157ad5f2f9ea8ce to your computer and use it in GitHub Desktop.
Save mattm/77ee0be38257b8b20157ad5f2f9ea8ce to your computer and use it in GitHub Desktop.
Stacked Area Chart - With Gaps
library(ggplot2)
data <- read.csv("dummy-data.csv", sep = "\t")
g <- ggplot(data, aes(x = week, y = signups, group = plan, fill = plan)) +
geom_area()
print(g)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment