Hi Im trying to highlight the most recent datapoint (last in the column via tail argument) in a violin plot in plotly. Though I dont know were to put the selectedpoints argument. Here is my code (which doesnt highlight btw
fig <- df %>%
plot_ly(
y = ~v.x,
type = 'violin',
box = list(
visible = T
),
selectedpoints = list(tail(df$column, 1)),
meanline = list(
visible = T
),
x0 = 'P violin plot'
)
fig <- fig %>%
layout(
yaxis = list(
title = "",
zeroline = F
)
)
fig