I have recently started using plotly to be able to create a few 3d scatter diagrams with multiple data. The data categories are so many that the use of different types of symbols (squares, triangles etc) is essential.
My problem is that even though I manually choose the shapes of markers some of them do not appear. For example square markers work just fine and appear on my plot but when I am using triangles, or asterisks nothing changes. I am providing my code below. I am loading data from an excel so you won’t be able to reproduce the diagram.
library(htmlwidgets) library(plotly) library(readxl) df <- read_excel("RStudio_dat.xlsx", sheet = "Comparison") fig <- plot_ly(df, x = ~x, y = ~y, z = ~z, color = ~Setting, size = 1, colors = c("Continental" = "#FFABC1", "Oceanic" = "#FED659", "Orogenic" = "#27B9EA"), symbol = ~Setting, symbols = c("Continental" = "circle", "Oceanic" = "square", "Orogenic" = "triangle-up")) fig <- fig %>% add_markers() fig saveWidget(fig, "3d.html")
How could I solve this problem? Thanks in advance!