Skip to contents

Plot an ESS result

Usage

# S3 method for class 'ESS'
plot(x, type = c("profile", "impact"), unit = NULL, ...)

Arguments

x

An object of class `"ESS"`.

type

`"profile"` for the inconsistency profile of a unit's modal result, or `"impact"` for cut scores and impact across grades.

unit

For `type = "profile"`, the unit to plot (default: the first). For `type = "impact"`, the item subset (default `"All"`).

...

Not used.

Value

A ggplot object (for `"impact"`, a list of ggplot objects).

Examples

set.seed(1)
sim <- generateMockDataSet(ngca = 2, ntable = 2, npanelist = 3,
                           cor_val = 0.7, nlevel = 3, sdinp = 1, ecinp = 0,
                           n = 30, 300, 500)
res <- emstans(data = sim, location = "Loc_RP50")
plot(res)

plot(res, type = "profile", unit = "M2-All")

plot(res, type = "impact")
#> $cut_scores

#> 
#> $percent_in

#> 
#> $percent_at_above

#>