I’m fighting with plot.ly logic to persuade it that my coord_equal() statement in ggplot2 chart is actually an extremely important statement especially when it comes to drawing equal hexagons. It means that x scale must equate to y scale, i.e. the chart can only be resized proportionately.
I managed to partially achieve the desired result in browser and in Rstudio viewer by setting
my_plotly_object$sizingPolicy$browser$fill <- FALSE
my_plotly_object>$sizingPolicy$viewer$fill <- FALSE
However, apparently the internal viewer on plot.ly site is considered neither “browser” nor “viewer” but some other rendering container (undocumented), and my online plot.ly chart is still resized to fill all available width space, turning my beautiful equal hexagons into awful squeezed ones.
Is there a way to either globally prohibit a disproportionate resizing of a plotly chart on any device or at least to set a proper sizingPolicy for plot.ly viewer?