地块:箱形图的手动填充颜色

时间:2019-07-04 00:02:04

标签: r plotly

我有一个箱形图,但是我想使用手动颜色填充每个人的颜色。

enter image description here

代码:

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")

0 个答案:

没有答案