You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
library(plotly)
library(ggplot2)
library(ggExtra)
data(mpg)
p <- ggplot(mpg, aes(cty, hwy)) +
geom_count() +
geom_smooth(method="lm", se=F)
p <- ggMarginal(p, type = "histogram", fill="transparent")
ggplotly(p)
yields the following error:
Error in UseMethod("ggplotly", p) :
no applicable method for 'ggplotly' applied to an object of class "c('ggExtraPlot', 'gtable', 'gTree', 'grob', 'gDesc')"
As with #2026, #2020, and #2028, {ggMarginal} is implemented on the {grid} level, so again, implementing a proper conversion would be a huge undertaking.
Activity
cpsievert commentedon Nov 1, 2021
As with #2026, #2020, and #2028,
{ggMarginal}is implemented on the{grid}level, so again, implementing a proper conversion would be a huge undertaking.As a workaround, you can do something like: