The other thing that you might want to do is you might want to color the samples in

various different ways.

I'm going to talk a little bit about a couple of different ways you can color

these dendrograms.

To do that, I'm going to turn it into a dendrogram object,

the clustering we just did, and

then what we can do is we can color the labels in various different ways.

One way is to say, I just want to have four clusters.

And they're colored with colors, one to four.

And then if I plot that dendogram, you can see that it's now Now draw on the cutoff

basically at the place along the dendogram that splits this into four clusters.

And so it turns out that the place that that happens is right here

across this line.

So you end up with, once you do that cut,

you end up with one cluster that's this purple cluster, and

then one cluster that's this cluster here, and then this pink cluster here.

And so, you can tell it the number of clusters to make.

You could, if you, instead, wanted to see three clusters,

you could just change the number of clusters to three,

the number of colors to three, and make a plot.

And so now, she has broken it up into three different clusters,

instead of four different clusters.

Okay, so another thing that you might want to do is instead of

labeling the clusters according to some cut off here,

you might actually have a previously defined set of labels for the samples.

So you might know that say, the first ten samples come from one