I am trying to create a violin plot with the individual data points overlayed over the violin plot. IF I create a violin using Plots.violin(data)
and then dotplot!(data)
I get a result of side-by-side rather than overlayed.
Typically, plot!
and other varieties overlay on an existing plot, unless a subplot is specified. I think this is probably a bug.
I think so as well. I’ll make a submission.
1 Like
If you don’t mind, please post a link to the issue in case someone needs to cross reference it in the future.
Sorry for dragging up an old conversation.
I’m pretty sure that to get the intended behaviour, you would need to specify an x coordinate for your plots. Otherwise, the default is to increment each of these by 1. In this example, Plots.violin([1],data)
and dotplot!([1],data)
might give the result you’re looking for.