Open
Description
For one, it should map to marker.line.dash
instead of line.dash
. Also, the value shouldn't be added to the trace name
zoo_dat <- tibble::tibble(
animal = rep(c('giraffes', 'orangutans', 'monkeys'), 2),
count = c(20, 14, 23, 12, 18, 29),
zoo = rep(c('SF Zoo', 'LA Zoo'), each = 3)
)
plot_ly(zoo_dat) %>%
add_bars(
x = ~animal,
y = ~count,
color = ~zoo,
stroke = I("black"),
linetype = I(5)
)