jist: Add letter grades to histogram

jistR Documentation

Add letter grades to histogram

Description

Given a vector of grades, add the letters to an existing histogram.

Usage

jist(h, Z=1, L=1, col=2)

Arguments

h

histogram list

Z

grades from original data

L

letters associated with grades

col

color for plotting letters

Details

This will add information on an existing histogram plot. If h is the output of do.grades() then Z and L are ignored.

Value

Graphical Side effects

Author(s)

Jonathan M. Lees<jonathan.lees@unc.edu>

See Also

do.grades

Examples



g = rnorm(130, m=82, sd=10)
g[g>100] = 100
g[g<1] = 1

B = boxplot(g)


divs = c(min(g), B$stats[1:4] + diff(B$stats)/2, max(g) )

####G1  = do.grades(g, cut=20, tit="GEOL 105 Exam 1")

##########  replot with existing divisions:
D1 = do.grades(g, divs=divs, tit="GEOL 105 Exam 1")

jist(D1$hist, D1$grades, D1$lett)

##########  or simply:

D1 = do.grades(g, divs=divs, tit="GEOL 105 Exam 1")

jist(D1)




ProfessR documentation built on Aug. 21, 2023, 9:07 a.m.