R:浏览器中未显示两组的 3D 散点图

问题描述

按照教程 here,我想创建一个 3d 散点图,其中有两种颜色(蓝色和橙色)代表两个不同的组。这是我的 plot3d 函数的片段,我在其中输入了 double 类型的 x y 和 z 值数据框列:

library(rgl)

par(mar=c(0,0))
plot3d( 
  x=population.zero$T,population.zero$M,z=population.zero$L,col = "orange",type = 's',radius = .1,xlab="Effective Temperature (K)",ylab=expression("Mass " (M['\u0298'])),zlab=expression("Luminosity " (L['\u0298'])))

plot3d( 
  x=population.one$T,population.one$M,z=population.one$L,col = "blue",zlab=expression("Luminosity " (L['\u0298'])))

htmlwidgets::saveWidget(rglwidget(),"MLvsT")

但是,当我在浏览器中查看此内容时,没有显示任何点。

enter image description here

有人知道我在这里遗漏了什么吗?

(加分项:如何使浏览器中的图形显得更大?)

编辑 1:按照@G5W 的建议,我将半径增加到 10。这里也是人口 0 和人口 1 的数据表:

population 0 population 1

然而,我仍然没有看到两个种群(只有蓝色,没有预期的蓝色和橙色)

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...