Swap Axes of Violin plot

165 views Asked by At

I am trying to create Violin Plots using the StatsPlots.jl library. However, I would like to have the returned Violin plot to be horizontal instead of vertical as I want to show the distribution of a variable (e.g. Temperature) for different heights, eg. at 1000m, 2000m, 3000m ...

So it would be nice if the height was at the y-Axis while the temperature distribution was on the x-Axis. Is there a way to swap the axes of a Plots.Plot struct, or is there an argument I could pass to violin() that does the trick?

0

There are 0 answers