paulgovan / WeibullR.plotly

Interactive Weibull Probability Plots with WeibullR and plotly
https://paulgovan.github.io/WeibullR.plotly/
Apache License 2.0
0 stars 1 forks source link

Warning message: 'layout' objects don't have these attributes: 'NA' #2

Closed nourelhoda-bouslah closed 1 year ago

nourelhoda-bouslah commented 1 year ago

Hello, When I run the code I get the following warning : Warning message: 'layout' objects don't have these attributes: 'NA' 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'

I don't know if it's related to the version of plotly or not but I wanted to know if it is for you or not. Because I'm developing an application and I can't continue with the warning.

paulgovan commented 1 year ago

Yes, I'm aware of the warning and it has to do with NA values in the table of results. Adding suspplot = TRUE, restab = FALSE to the plotly_wblr call should remove the warning. Will update once I have a fix.

paulgovan commented 1 year ago

This was due to an open issue with plotly: https://github.com/plotly/plotly.R/issues/994.

I created a workaround that's available in the development version:

devtools::install_github('paulgovan/weibullr.plotly')

nourelhoda-bouslah commented 1 year ago

Thank you @paulgovan for your reactivity. It is OK (I will close this issue)