draw_grade_density: Grade density

View source: R/draw_grade_density.R

draw_grade_densityR Documentation

Grade density

Description

Function drawing grade density and positioning the student relative to the mean and median and showing the status areas.

Usage

draw_grade_density(
  grades,
  studentid,
  structure,
  labels = base::list(x = "Grade", y = "Proportion", avg = "Mean", med = "Median", stu =
    "You")
)

Arguments

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)

Value

A ggplot object ready for rendering.

Author(s)

Nicolas Mangin


NicolasJBM/chartR documentation built on Sept. 13, 2024, 12:31 p.m.