ggplot(data = <NAME OF DATASET>,
mapping = aes(x = <NAME OF NUMERICAL VARIABLE>,
y = <NAME OF CATEGORICAL VARIABLE>)
+
) geom_density_ridges()+
labs(x = "<TITLE FOR THE X-AXIS>",
y = "<TITLE FOR THE Y-AXIS>")