I am creating a 3D scatterplot using plotly in R and I would like to reduce the marker size of all points.
library(plotly)
plot_ly(iris,x=~Petal.Width,y=~Sepal.Width,z=~Petal.Length) %>%
add_markers(color=~Species)
I tried to set the sizes
argument, but that doesn't seem to change anything.
plot_ly(iris,x=~Petal.Width,y=~Sepal.Width,z=~Petal.Length) %>%
add_markers(color=~Species,sizes=0.02)
Also tried another argument sizeref
. Still, nothing happens.
plot_ly(iris,x=~Petal.Width,y=~Sepal.Width,z=~Petal.Length) %>%
add_markers(color=~Species,marker=list(sizeref=0.02))
Any other solution to decrease the marker size of all points? Or am I doing something wrong?
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments