【发布时间】:2018-10-27 14:21:58
【问题描述】:
我正在使用 R 中的 plotly 创建一个 3D 散点图,我想减小所有点的标记大小。
library(plotly)
plot_ly(iris,x=~Petal.Width,y=~Sepal.Width,z=~Petal.Length) %>%
add_markers(color=~Species)
我尝试设置 sizes 参数,但这似乎没有任何改变。
plot_ly(iris,x=~Petal.Width,y=~Sepal.Width,z=~Petal.Length) %>%
add_markers(color=~Species,sizes=0.02)
还尝试了另一个参数sizeref。不过,什么都没有发生。
plot_ly(iris,x=~Petal.Width,y=~Sepal.Width,z=~Petal.Length) %>%
add_markers(color=~Species,marker=list(sizeref=0.02))
还有其他解决方案可以减小所有点的标记大小吗?还是我做错了什么?
【问题讨论】: