We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I have measurements from several groups which I would like to plot as violin plots:
set.seed(1) df <- data.frame(val = c(runif(100,1,5),runif(100,1,5),rep(0,100)), group = c(rep("A",100),rep("B",100),rep("C",100)))
When I use R's ggplot2:
R
ggplot2
library(ggplot2) ggplot(data = df, aes(x = group, y = val, color = group)) + geom_violin()
I get this plot
But when I try to get the equivalent with R's plotly using:
plotly
library(plotly) plot_ly(x = df$group, y = df$val, split = df$group, type = 'violin', box = list(visible = F), points = F, showlegend = T, color = df$group)
I get this plot in which group "C" gets an inflated/artificial violin.
Can I tell plot_ly not to create violin for groups such as "C"?
plot_ly
The text was updated successfully, but these errors were encountered:
This is something that should be fixed at the plotly.js level, see plotly/plotly.js#2779
Sorry, something went wrong.
No branches or pull requests
Hi,
I have measurements from several groups which I would like to plot as violin plots:
When I use
R
'sggplot2
:I get this plot
But when I try to get the equivalent with
R
'splotly
using:I get this plot in which group "C" gets an inflated/artificial violin.
Can I tell
plot_ly
not to create violin for groups such as "C"?The text was updated successfully, but these errors were encountered: