我有一个箱形图,但是我想使用手动颜色填充每个人的颜色。
代码:
p <- plot_ly(tvs, x = ~ecommerce, y = ~precio_actual, color = ~ecommerce, type = "box") %>%
layout(boxmode = "group")
p
我需要使用的颜色:
ecommerce_colors <- c("lacuracao" = "#ffda33","ripley" = "#802D69","falabella" = "#BED800",
'wong' = "red", "tottus" = "#fa3e14")