Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

No observation is shown in the plot

Hi,

I wanted to try Plotly library in R. Just to try quickly this library I have tried one example from this page : https://plot.ly/r/line-and-scatter/

After submiting the exact same code :

library(plotly)

p <- plot_ly(data = iris, x = ~Sepal.Length, y = ~Petal.Length)

Here is what I get :
But when

I don’t know why but no observations is shown in the plot.

Seems to work fine for me (4.5.6.900), perhaps try updating: install.packages("plotly") or devtools::install_github("ropensci/plotly") for the development version.

I have updated the package but nothing changed.
I tried removing the “~” into the x and y variable and it worked.

Thank you