Towards Data Science, Data Analysis, Bayesian Statistics, Data Visualization, Deep Dives.
TRUE) str(df) Now we can verify that it is recognized as an ordered categorical variable. With this in hand, we can easily move on to visualization and modeling. Exploratory data visualization First, let’s load the necessary libraries and create a visual theme for our plots. library(ggplot2)