In 3D scatterplots, no markers are shown:
set.seed(2016-07-21)
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.
p <- plot_ly(mtcars, x = ~wt, y = ~hp, z = ~qsec, color = ~am, colors = c(’#BF382A’, ‘#0C4B8E’)) %>%
add_markers() %>%
layout(scene = list(xaxis = list(title = ‘Weight’),
yaxis = list(title = ‘Gross horsepower’),
zaxis = list(title = ‘1/4 mile time’)))
p
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.
same issue here, after updating from 4.5.6 to 4.6. I tried both the plotly 4.6 from CRAN, and also the developer version 4.6.0.9000, type=“scatter3d” in plot_ly() is not working. using rstudio 1.0.143
below is my system information:
Sys.info()
sysname release version nodename machine login user
“Windows” “>= 8 x64” “build 9200” “PWRPC1” “x86-64” “admin” “admin”
effective_user
“admin”
version
_
platform x86_64-w64-mingw32
arch x86_64
os mingw32
system x86_64, mingw32
status
major 3
minor 4.0
year 2017
month 04
day 21
svn rev 72570
language R
version.string R version 3.4.0 (2017-04-21)
nickname You Stupid Darkness
I am using latest R and RStudio and plotly version 4.7 and still not getting any markers using the plotly official example or yours above: p <- plot_ly(x = 1:10, y = 10:1, z = 1:10).
I’m using R Shiny so I’ve tried the plot in Shiny and just in R Studio and no luck.