From the course: R for Data Science: Analysis and Visualization

Unlock the full course today

Join today to access over 25,000 courses taught by industry experts.

Creating cluster charts

Creating cluster charts

- [Instructor] A common task in working with data is finding more or less naturally occurring groups in your data of observations or cases or people who can be grouped together. Say, for instance, you're going to do marketing campaigns and you have enough money for three different campaigns, then you want to find three different groups of people in your audience who can each receive one of the campaigns. And the nice way to do this is with a visual diagram, a cluster chart, which is very easy to do in R. And we actually have a few different options. Now I'm going to start by opening this file, 03_07_clustercharts.R. And when I do that, we get this yellow warning across the top that says there are two packages that are required but not installed. You can either click Install right here and it'll take care of it. But I'm also going to just run through it with the code itself. Now we're going to be using a package that we haven't used before called ggdendro, which stands for grammar of…

Contents