Tree maps are easy to make in R with ggplot2
videoimage: thumbnail.jpg
Transcript#
This transcript was generated automatically and may contain errors.
We all know Taylor Swift is having a massive year. Her heirs tour is expected to bring in 3.6 billion and this visualization behind me was made in R so you can actually make this yourself with code. I didn't make this, my co-worker Isabella did, but she's going to show you how you can make this too in R.
In R you can create a tree map using ggplot2 and the tree mapify package. First you have to convert your data frame into the right format to visualize those relationships using the tree mapify function which I do here. Next I initialize the ggplot2 that I want to create then I add my tree map. I can even add a custom image if I want to.
Finally I finish adding all the details to the ggplot2 that I want and when I use ggsave it's going to save this image.
