I wish this helpful for you I am trying to make a grid of 3x3 subplots in Plotly. I'm trying to get titles for each subplot and a main title on the top and I can't seem to get it to work. I see this wonderful site for Python but I can't seem to find its equivalent for R. , You could use ggplot + plotly to achieve it. This does the trick:
Any of those help The domain specifies the relative range of the complete plot in which the subplot is located. The range is from 0 to 1 and 0 is the lowest/most left part. In your case if you want to have three columns, you would need the x part of the domain would be a sliding window ((0, 0.3), (0.35, 0.65), (0.7, 1)) and the y part would be constant ((0, 1)).
it should still fix some issue Plotly Express (PX) functions like px.line() return figures, just like make_subplots does. On the other hand, add_trace() accepts trace objects and not figure objects, which is why fig.add_trace(px.line()) doesn't work. PX can make subplots using make_subplots internally if you pass in the facet_row and/or facet_col arguments. This means that it is compatible with make_subplots in that you can call add_trace(row=r, col=c) on a figure created via px.whatever().