# How to change color of branches in Dendrogram?

**URL:** <https://community.wolfram.com/t/how-to-change-color-of-branches-in-dendrogram/19813>\
**Category:** Questions\
**Tags:** graphics-and-visualization\
**Created:** [March 27, 2022, 6:38am UTC](https://community.wolfram.com/t/how-to-change-color-of-branches-in-dendrogram/19813 "2022-03-27T06:38:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tangentvectors](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/tangentvectors/32/9065_2.png) [@tangentvectors](https://community.wolfram.com/u/tangentvectors)\
**Post date:** [March 27, 2022, 6:38am UTC](https://community.wolfram.com/t/how-to-change-color-of-branches-in-dendrogram/19813/1 "2022-03-27T06:38:35Z")

</div>

Hi,  
It appears the default color for branches in a Dendrogram is gray. I tried changing them to Black with BaseStyle-\>Black to no avail. How is this accomplished?

 ![graydendrogram.jpg](https://global.discourse-cdn.com/wolfram/original/3X/1/4/1419f57a6b7aca65fe648c7fb6edbd81ae3e8460.jpeg)

---

<div class="post-metadata">

**Author:** ![eric3](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/eric3/32/12760_2.png) [@eric3](https://community.wolfram.com/u/eric3)\
**Post date:** [March 27, 2022, 2:58pm UTC](https://community.wolfram.com/t/how-to-change-color-of-branches-in-dendrogram/19813/2 "2022-03-27T14:58:39Z")

</div>

I haven’t used Dendrograms before, so I just started experimenting. If you look at `Dendrogram[{1, 2, 4}] // FullForm`, you can see that it’s a Graphics object. That’s not what I expected, since Graph and Tree and so forth keep an abstract representation and just _display_ as if they were graphics. On the other hand, it means we can use the same options that Graphics uses. But, I don’t know what option affects line color (I always just insert the colors among the graphics primitives). However, since it’s a Graphics object, we can manipulate it directly. If you go back and look at the FullForm, you can see that it’s just a set of Lines and that their color is set to `GrayLevel[0.65]`. We could just replace that:

```
ReplacePart[Dendrogram[{1, 2, 4}], {1, 1, 1} -> Splice[{Dashed, Red}]]

```

This seems a bit of a hack, but it could be rolled into a function so that you could use it automatically.
