[Go to site: main page, start]

Most basic streamgraph



This post describes how to build a basic streamgraph using R and the streamgraph package. It provides the reproducible code and explanation.

Streamgraph section Data to Viz

This post describe the basic use of the streamgraph package. Your input needs 3 columns:

The streamgraph() function requires those 3 inputs to work.

Note: The streamgraph package is a work by Bob Rudis. It lives on github.

Note: you can save the chart as a html file using the saveWidget() function of the htmlwidgets package, as suggested in the commented code below.

Related chart types


Line plot
Area
Stacked area
Streamchart
Time Series



❤️ 10 best R tricks ❤️

👋 After crafting hundreds of R charts over 12 years, I've distilled my top 10 tips and tricks. Receive them via email! One insight per day for the next 10 days! 🔥