Introduction
Often youmay find yourself in a spot where you are willing to investigate the relationship between two variables, just like the Chapter 2, Plotting Two Continuous Variables did. The tools covered there are more suited for the continuous versus continuous paradigma, but sometimes you are stuck with a discrete versus continuous paradigma. If that is the case, this chapter may have what you're looking for.
This chapter introduces box, dot, and violin plots. Besides the mainly used functions to build them under ggplot2
, ggvis
, and plotly
supervision, it also addresses some nuts and bolts that are usually related to this kinds of visualizations. Little tweaks that greatly improve the outcomes are also advised.
Note
Two little disclaimers here. Sometimes, I may use categories as a pronoun for discrete values; I'm aware that they are not the same thing. Second disclaimer: by the time this chapter was written, plotly
did not had functions to draw violins, nor did ggvis
.
For ggvis
and plotly...