How to Create Parallel Plots in R with geom_line() and ggparcoord()
3,462
Published 2022-08-20
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)
-
Very clear and systematic. Thank you!
-
Very interesting video. Thank you so much !
-
if do clustering by kmeans then,i assign labels , and can use it to demonstrate how features affect our clustering? ill think abt use this on my report thanks sir , im new to all of these
-
thanks
-
geom_line() function and the ggparcoord() function.