I am trying to create a scatter plot plotlywith borders around points.
The perfect thing:
plot_ly(data = iris, x = ~Sepal.Length, y = ~Petal.Length,
marker = list(size = 10,
color = 'rgba(255, 182, 193, .9)',
line = list(color = 'rgba(152, 0, 0, .8)',
width = 2)))

But in my (much more complicated) case, I create a plot with a function add_markersas follows:
plot_ly(data = iris) %>%
add_markers(x = ~Sepal.Length, y = ~Petal.Length,
color = 'rgba(255, 182, 193, .9)')
The argument linegives a line instead of a border around the points:

Adding a parameter symbol = "circle-open"as a parameter also does not help.
Please, help.
source
share