View source: R/draw_grade_density.R
draw_grade_density | R Documentation |
Function drawing grade density and positioning the student relative to the mean and median and showing the status areas.
draw_grade_density(
grades,
studentid,
structure,
labels = base::list(x = "Grade", y = "Proportion", avg = "Mean", med = "Median", stu =
"You")
)
grades |
Tibble. List of grades of all students. Three necessary variables: student, points, grade. |
studentid |
Character. ID of the student. |
structure |
Tibble. Variables: threshold, status, color, and comment. Comment is not necessary. |
labels |
List. Names for axes and legends (for translations purposes) |
A ggplot object ready for rendering.
Nicolas Mangin
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.