This is my first plot with plotly.
library(plotly)
df <- iris
fig <- df %>%
plot_ly(
x = ~Species,
y = ~Sepal.Length,
type = 'violin',
box = list(
visible = T
),
meanline = list(
visible = T
),
x0 = 'Sepal Length',
color = I("pink")
)
fig <- fig %>%
layout(
yaxis = list(
title = "",
zeroline = F
)
)
fig