Learn R Programming

normref (version 0.0.0.1)

plot_drel: Plot reliability estimates over age

Description

plot_drel() plots reliability estimates as a function of age, based on different window widths, using a Drel object.

Usage

plot_drel(drel, ncol = 3, nrow = 2, ...)

Value

graphical output and the ggplot object used to create it.

Arguments

drel

a Drel object (created with different_rel()).

ncol

number of plots per row (default: 3).

nrow

number of plots per column (default: 2).

...

additional arguments passed to plotting functions.

See Also

different_rel()

Examples

Run this code
# \donttest{
data("ids_kn_data")

rel_int <- different_rel(
  data           = ids_kn_data,
  item_variables = colnames(ids_kn_data),
  age_name       = "age_years",
  step_window    = c(0.5, 1, 2, 5, 10, 20),
  min_agegroup   = 5,
  max_agegroup   = 20,
  step_agegroup  = c(0.5, 1, 1.5, 2)
)

plot_drel(rel_int, ncol = 2)
# }

Run the code above in your browser using DataLab