A function to generate simple density plots.
Single density plots can be generated:
(
density_plot(
test_1_data,
x = "grade",
title = "Density of Grades",
limits = c(0, 100)
)
+ labs(x = "Grade (/100)")
)
Or plots can be wrapped by proviging a group_on
argument:
(
density_plot(
test_1_data,
x = "grade",
title = "Density of Grades By Stream",
group_on = "stream",
limits = c(0, 100)
)
+ labs(x = "Grade (/100)")
)