Opening a graphical stand-alone web page in Firefox

I understand that this is not really a programming issue. I run the following code, and then export the story as a web page (using R Studio 1.0.44, and R 3.3.1in Windows 10). When I try to open a saved webpage in Firefox 50.1.0, I don’t see anything. The web page opens in Chrome. I had a problem on two different computers. Could you check if this is a reproducible problem. If you can think of something that I can do wrong, let me know.

set.seed(42)
mydata = data.frame(A = rnorm(20), B = rnorm(20), Index = sample(190:400,20)) 
require(plotly)
x = list(title = "A")
y = list(title = "B")     
mydata$interval = cut(mydata$Index,breaks = 20)   
plot_ly(mydata, x = ~A, y = ~B, type = "scatter",
        mode = 'markers', hoverinfo = 'text', colors = colorRampPalette(c("red", "black"),
        space = "rgb")(20),
        color = ~Index, text = ~paste(interval), marker = list(size=14)) %>%
        layout(xaxis = x, yaxis = y) %>%
        colorbar(title = "My Legend")
+6
source share

Source: https://habr.com/ru/post/1014353/


All Articles