I have a dataset containing 8 categories, I now want to visually compare the variance between the categories. The most common approach would be to use box plots or violin plots but I would like to know if there are other "more exciting" ways of doing that?
-
2$\begingroup$ Variance of what? Please tell us more about the variable(s) that don't come in 8 categories. $\endgroup$– Nick CoxCommented Mar 25, 2019 at 15:01
-
$\begingroup$ Your question isn't really detailed enough to answer. My blog post how to ask a statistics question may help you write a question that can be answered. $\endgroup$– Peter FlomCommented Apr 4, 2019 at 10:56
3 Answers
In addition to the plot types you have mentioned (box plots and violin plots), you can visualize it for example as histograms, probability density functions, or kernel density estimates. It depends on your goal and your data. If you have relatively small dataset, you can also use scatterplots or strip plots, as suggested in other answers by @user233738 &@asdf - that way you can actually show all of the datapoints.
On the other hand, if you are only interested in variance (as you mentioned), but not in measures of central tendency (mean/median etc), you can also just show the numerical variance values in datatable.
You can also use strip plots or strip charts for comparing variance. They are similar to boxplots but "more exciting".
I often use a scatter plot when trying to visualize variance. The way I proceed is by plotting all data together, separating each of the groups by colour. Now you can compare dispersion along the equally-coloured points