I have created the following 3d scatter plot using plotly in R. For this I used the following code The data setTxy, just contains the x,y,z coordinates of each marker and a value between 0-1.5 for each coordinate point (in a column with name vectorM)
figfactor<- plot_ly(setTxy, x=~xplot,y=~yplot*-1,z=(~zplot*-1),
type="scatter3d",mode="markers",
marker=list(color=~vectorM,
colorscale=c("rgb(244, 244, 244)","rgb(65, 65, 65)"),
showscale=TRUE,
line=list(width=2,color='DarkSlateGrey')))
figfactor <- figfactor %>% add_markers()
figfactor <- figfactor %>% layout(scene = list(xaxis = list(title = 'x-value [mm]'),
yaxis = list(title = 'y-value [mm]'),
zaxis = list(title = 'z-value [mm]')),
annotations = list(
x = 1.06,
y = 1.03,
text = 'factor',
xref = 'paper',
yref = 'paper',
showarrow = FALSE
))
figfactor
I thought I changed all colors to grey , but there is still collor in the plot. How can I change this? Further: -why is the scaling not in grey; and how can I create this? -how can I outline "factor"above the scale on the right -why do I have 'trace 0'and 'trace 1'?
How can I draw two circles in this graph, either by drawing into the graph or by using the formula of a circle?
Thanks