R散点图中的三维散点图仍为空

Vik*_*tor 9 3d r plotly

我有一个简单的问题关于使用R中的plotly包的三维散点图.看起来所有的图都在使用三维散点图和线图.为了测试这个,我尝试了以下代码(=从备忘单中获取):

library(plotly)

plot_ly(type = "scatter3d", x = c(9,8,5,1), y = c(1,2,4,8),z = c(11,8,15,3),
        mode = "markers")
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

我最终得到的图表只包含轴而不是实际点.为了排除故障,我添加了让我感到困惑的颜色,因为带有颜色标度的图例确实出现了但不是点数本身.我注意到轴的刻度错误((80,-80),(60,-60),(100,-100)).

此外,3d表面图和2d散点图示例完美地工作.

hal*_*fer 9

(代表OP发布).

我恢复到旧包(4.5.6被发现工作),请找到下面的脚本:

require(devtools)
install_version("plotly", version = "4.5.6", repos = "http://cran.us.r-project.org")
Run Code Online (Sandbox Code Playgroud)