In 3D scatterplots, no markers are shown:
temp <- rnorm(100, mean = 30, sd = 5)
pressure <- rnorm(100)
dtime <- 1:100
plot_ly(x = ~temp, y = ~pressure, z = ~dtime, type = “scatter3d”, mode=“lines”, color = ~temp)
The R code above displays the axes and legend, but no markers.
I’m using R 3.3.3, RStudio 1.0.143 and Plotly 4.6.0, on WIndows 10.
What am I doing incorrectly??? 2D scatterplots work correctly.
The “official” example from https://plot.ly/r/3d-scatter-plots/ also doesn’t display any markers
mtcars$am[which(mtcars$am == 0)] <- 'Automatic’
mtcars$am[which(mtcars$am == 1)] <- 'Manual’
mtcars$am <- as.factor(mtcars$am)
p <- plot_ly(mtcars, x = ~wt, y = ~hp, z = ~qsec, color = ~am, colors = c(’#BF382A’, ‘#0C4B8E’)) %>%
layout(scene = list(xaxis = list(title = ‘Weight’),
yaxis = list(title = ‘Gross horsepower’),
zaxis = list(title = ‘1/4 mile time’)))
EDIT: I’ve confirmed that if you save the plot from R studio (as a web page), then on Windows at least, Firefox, Edge and Chrome will display the markers correctly. I thought R-studio was based on Chrome/Chromium, so this is a puzzle.