plotly.R icon indicating copy to clipboard operation
plotly.R copied to clipboard

Boxplot doesn't show up side-by-side

Open kojisposts opened this issue 5 years ago • 3 comments

I'm very confused, because this doesn't seem to be a problem other users here are having. But in any case, I'm trying to create side-by-side boxplots with the following code; it does what I want on ggplot but not when wrapping with ggplotly.

ggplot(density_tidy,aes(x=cluster, y=dem_margin)) +
  geom_boxplot(aes(colour=region), fill=NA, alpha=0.5)

スクリーンショット 2019-08-06 午後1 40 04 スクリーンショット 2019-08-06 午後1 40 27

kojisposts avatar Aug 06 '19 17:08 kojisposts

It'll likely work if you install this experimental PR:

devtools::install_github("ropensci/plotly#1514")

cpsievert avatar Aug 06 '19 17:08 cpsievert

@cpsievert , thanks for sharing this in progress version. I have tried it, it is working fine.

Please let me know, when can this changed be merged with current plotly package and deployed. So that we can install it from cran.

romabhu avatar Oct 30 '19 06:10 romabhu

I'm still having this issue today, is there perhaps any update regarding https://github.com/plotly/plotly.R/pull/1514 which should fix this? (Unfortunately I'm only allowed to install packages from CRAN.) Thanks. @cpsievert

Workaround used for now for those facing the same problem (ignore the warning returned in the console): https://github.com/plotly/plotly.R/issues/1644#issuecomment-667560318

Flocondeneige55 avatar Jun 16 '23 14:06 Flocondeneige55