Closed marine-ecologist closed 9 months ago
Hi there,
I'm not too familiar with the inner workings of {plotly} and how axes are handled. From a small experiment, it seems that any non-default axis isn't displayed. You can check for yourself by running this example:
library(ggplot2)
library(plotly)
p <- ggplot(mpg, aes(displ, hwy)) +
geom_point() +
guides(x = "none", y = "none")
# No x/y axes
p
# Has x/y axes
ggplotly(p)
In any case, since plotly doesn't appear to support custom axes, there isn't anything I can do from ggh4x's side to make it possible.
Best, Teun
I've very much appreciated the simplicity of
scale_y_dendrogram()
to pair bar graphs and dendrograms inggplot()
, and would like to use the code in a shiny app viaggplotly
. I'm sure this is my lack of knowledge as to howscale_y_dendrogram()
is functioning under the hood rather than an issue, but I can't get the dendrogram to appear within the plot.Example code below:
Works fine:
Missing y axis:
The same problem exists with
scale_x_dendrogram()
andscale_y_dendrogram()
. Am I missing something in howggh4x
is pairing with theggplot()
output and is there a solution to this withggplotly
?