How to Create Parallel Plots in R with geom_line() and ggparcoord()

Published 2022-08-20
In this tutorial I will show you how to draw multiple lines in R with the geom_line() function and the ggparcoord() function.
You can use these to highlight a group of lines for certain categories or highlight an individual response.
Sometimes these chart types are also called Spaghetti plots.
I will also go through the function arguments from the ggparcoord function that is provided by the GGally package.

⏱ Time Stamps ⌚

0:00 - Intro and video overview
0:32 - color multiple lines based on a category
4:00 - highlight individual countries of the gapminder dataset
7:35 - facet_wrap() to highlight 1 out of 9 African countries
9:03 - GGally::ggparcoord function arguments

External Links:
r-graph-gallery.com/parallel-plot.html
r-graph-gallery.com/93-parrallel-plot.html
www.data-to-viz.com/graph/parallel.html
r-charts.com/ranking/parallel-coordinates-ggplot2/
www.storytellingwithdata.com/blog/2013/03/avoiding…

All Comments (6)