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

Issues with geom_boxplot(position = "dodge")

Open romabhu opened this issue 4 years ago • 6 comments

I am using ggplot to generate the boxplot in server.r But when I am trying to show plot on ui using ggplotly through renderPlotly() in shiny, plot is getting changed.

Please refer attached R-code and image of plot getting generated.

BoxPlot_GGPLOTLY_Issue BoxPlot_Issue.zip

romabhu avatar Oct 21 '19 08:10 romabhu

@romabhu thanks for the report, there's a WIP for fixing the issue #1514. Feel free to give it a test run

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

cpsievert avatar Oct 21 '19 14:10 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

Any update on this issue?

romabhu avatar Jan 28 '20 07:01 romabhu

Any update on this issue?

p <-ggplot(dfmelt, aes(x=factor(round_any(x,0.5)), y=value,fill=variable)) + geom_boxplot()

ggplotly(p) %>% layout(boxmode = "group")

jbrnbrg avatar Aug 01 '20 17:08 jbrnbrg

Any update on this issue?

p <-ggplot(dfmelt, aes(x=factor(round_any(x,0.5)), y=value,fill=variable)) + geom_boxplot()

ggplotly(p) %>% layout(boxmode = "group")

Thanks, this saved me some headaches!

thomashusken avatar Oct 15 '21 13:10 thomashusken

any solution for using position dodge with geom_point? layout(boxmode = "group") does not work in this case

DaniFlat avatar Aug 23 '22 10:08 DaniFlat