[英]R plotly: Adjust absolute marker size on 3D scatterplot
我正在使用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))
任何其他解决方案,以减少所有点的标记大小? 或者我做错了什么?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.