# How do I connect or link legends in a subplot?

**URL:** <https://community.plotly.com/t/how-do-i-connect-or-link-legends-in-a-subplot/3984>\
**Category:** Plotly R\
**Created:** [April 19, 2017, 3:01pm UTC](https://community.plotly.com/t/how-do-i-connect-or-link-legends-in-a-subplot/3984 "2017-04-19T15:01:12Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jack](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/jack/32/11_2.png) [@jack](https://community.plotly.com/u/jack)\
**Post date:** [April 21, 2017, 4:53am UTC](https://community.plotly.com/t/how-do-i-connect-or-link-legends-in-a-subplot/3984/2 "2017-04-21T04:53:48Z")

</div>

Try a grouped legend: [https://plot.ly/r/legend/#grouped-legend](https://plot.ly/r/legend/#grouped-legend)

---

_[View the full topic](https://community.plotly.com/t/how-do-i-connect-or-link-legends-in-a-subplot/3984)._
