R Plotly 3D Scatter Plot Color Scale Not Changing

Hi,

I recently explored the R Ploty packages, and tried to follow the 3D Scatter Plot https://plotly.com/r/3d-scatter-plots/#reference. The 3D plot worked out, but I cannot make any changes to the color scale. I have tried different ways, such as ‘Blues’, ‘Rainbow’, and HexCodes, yet none of them work, they all produce the default color.

Do you know what is going on?

Thanks,
SSSStan