r - Remove Size data label in a plotly plot -
but want remove "size(size): x" data label keep names: ["aaaaaaaaa", ......, "iiiiiiiiii"]
this code use:
plot_ly(test, x = x, y = y ,text = type,mode = "markers+text", size = size)
any tips?
using latest cran version of plotly.
df <- data.frame(x = 1:3, y = 1:3, size = round(runif(3, 1, 5)), labels = letters[1:3]) df %>% plot_ly(x = ~x) %>% add_markers(y = ~y, size = ~size) %>% add_text(y = ~y, text = ~labels)
Comments
Post a Comment