R plotly: Adjust absolute marker size on 3D scatterplot

rmf

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)

default

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?

byouness

You were close, the argument is size, and marker should go into plot_ly() instead of add_markers().

library(plotly)
plot_ly(iris,x=~Petal.Width,y=~Sepal.Width,z=~Petal.Length,
        marker = list(size = 20)) %>% 
   add_markers(color=~Species)

enter image description here

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

seaborn scatterplot marker size for ALL markers

Specifying marker size in data unit for plotly

R: adding droplines to fitted plane in 3D scatterplot in rgl

matplotlib 3D scatterplot with marker color corresponding to RGB values

Scatterplot with different size, marker, and color from pandas dataframe

R plotly version 4.5.2 scatterplot legend bubble size settings

R plotly 3d bar plot

Data not appearing in plotly 3d scatterplot

spurious warning when mapping marker size in plotly R

R plotly flat surface in 3d scatterplot

How to style/format point markers in Plotly 3D scatterplot?

Set text size within marker in r plotly bubble chart

Marker over plotly dots in a scatterplot

Drawing a 3d box in a 3d scatterplot using plotly

Colors not displaying correctly on a 3D scatterplot (R)

Setting markers colour in plotly 3D scatterplot according to R, G, B stored in DataFrame columns

How can I set marker size based on column value in python using plotly scatterplot?

plotly-r: specifying size of marker in add_trace() reduces opacity of markers

Plotly in R creating a 3D animation

Make marker size proportional to data in scatterplot Matlab

drawing scatterplot 3D in r

plotly 3D scatterplot in R z axis and isomorphis

Plotly marker size

plot in 3D with plotly in R

plotly px.scatter_3d marker size

colorscale does not change the scatter points color in plotly 3d scatterplot in R

Remove marker border/line in scatterplot plotly R

R Plotly - Assign the color of a marker by its size

How to adjust the size of the dots in the legend of a Seaborn scatterplot?

TOP Ranking

HotTag

Archive