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

Warning message when creating a grouped boxplot

Open dgreer1 opened this issue 1 year ago • 2 comments

When I run the example code for a grouped box plot on the plotly documentation I get a the following warning:

Warning: 'layout' objects don't have these attributes: 'boxmode' Valid attributes include: '_deprecated', 'activeshape', 'annotations', 'autosize', 'autotypenumbers', 'calendar', 'clickmode', 'coloraxis', 'colorscale', 'colorway', 'computed', 'datarevision', 'dragmode', 'editrevision', 'editType', 'font', 'geo', 'grid', 'height', 'hidesources', 'hoverdistance', 'hoverlabel', 'hovermode', 'images', 'legend', 'mapbox', 'margin', 'meta', 'metasrc', 'modebar', 'newshape', 'paper_bgcolor', 'plot_bgcolor', 'polar', 'scene', 'selectdirection', 'selectionrevision', 'separators', 'shapes', 'showlegend', 'sliders', 'smith', 'spikedistance', 'template', 'ternary', 'title', 'transition', 'uirevision', 'uniformtext', 'updatemenus', 'width', 'xaxis', 'yaxis', 'barmode', 'bargap', 'mapType'

The code is on the documentation website but reproduced here as a reprex:

fig <- plot_ly(ggplot2::diamonds, x = ~cut, y = ~price, color = ~clarity, type = "box")
fig <- fig %>% layout(boxmode = "group")

fig

I can see that this issue was discussed some years ago but despite the issue being closed it still seems to be a problem.

dgreer1 avatar Aug 10 '24 23:08 dgreer1

We have exactly the same problem and it is polluting all our Shiny logs. A fix or a workaround would be really beneficial please!

arenaux-xlra avatar Aug 23 '24 14:08 arenaux-xlra

It's incredibly frustrating for us too.

oliver-gray avatar Sep 18 '24 14:09 oliver-gray