Black Lives Matter. Please consider donating to Black Girls Code today.
Dash HoloViews is now available! Check out the docs.

How to integrate layout() (from plotly package) into shiny

Hello,

I am curious to know how to integrate layout() (from plotly package) into shiny, like integrate plots into shiny with renderPlotly(), ggplots with ggplotly().

For example, how to integrate Figure 3.8 in the link to shiny? https://plotly-book.cpsievert.me/merging-plotly-objects.html

Does anyone have ideas?

Thanks,
Jianhai