plot.exametrika {exametrika} | R Documentation |
Plot Method for Objects of Class "exametrika"
Description
Creates visualizations for objects with class "exametrika". The calculation results of the exametrika package have an exametrika class attribute, along with the specific analysis model class (IRT, GRM, LCA, LRA, Biclustering, IRM, LDLRA, LDB, BINET). Each model has its own compatible plot types, accessible by specifying the 'type' parameter.
Usage
## S3 method for class 'exametrika'
plot(
x,
type = c("IRF", "TRF", "IIF", "TIF", "IIC", "ICC", "TIC", "IRP", "TRP", "LCD", "CMP",
"FRP", "RMP", "LRD", "Array", "CRV", "RRV", "FieldPIRP", "LDPSR", "ScoreFreq",
"ScoreRank", "ICRP", "ICBR"),
items = NULL,
students = NULL,
nc = 1,
nr = 1,
overlay = FALSE,
...
)
Arguments
x |
An object of class "exametrika" |
type |
Character string specifying the plot type. Available types vary by model:
|
items |
Numeric vector specifying which items to plot. If NULL, all items are included. When type is "IIF"/"IIC", specifying 0 will produce a TIF/TIC for the entire test. |
students |
Numeric vector specifying which students to plot. If NULL, all students are included. |
nc |
Integer specifying the number of columns for multiple plots. Default is 1. |
nr |
Integer specifying the number of rows for multiple plots. Default is 1. |
overlay |
Logical. If TRUE, elements such as IRFs will be overlaid on a single plot. Default is FALSE. |
... |
Additional arguments passed to plotting functions. |
Details
Each model class supports specific plot types:
- IRT
Supports "IRF"/"ICC", "TRF", "IIF"/"IIC", "TIF"/"TIC"
- GRM
Supports "IRF"/"ICC", "IIF"/"IIC", "TIF"/"TIC"
- LCA
Supports "IRP", "FRP", "TRP", "LCD", "CMP"
- LRA
Supports "IRP", "FRP", "TRP", "LRD", "RMP"
- LRAordinal
Supports "ScoreFreq", "ScoreRank", "ICRP", "ICBR", "RMP"
- LRArated
Supports "ScoreFreq", "ScoreRank", "ICRP", "RMP"
- Biclustering
Supports "FRP", "TRP", "LCD", "LRD", "CMP", "RMP", "CRV", "RRV", "Array"
- IRM
Supports "FRP", "TRP", "Array"
- LDLRA
Supports "IRP", "TRP", "LRD", "RMP"
- LDB
Supports "FRP", "TRP", "LRD", "RMP", "Array", "FieldPIRP"
- BINET
Supports "FRP", "TRP", "LRD", "RMP", "Array", "LDPSR"
Value
Produces visualizations based on the model class and specified type:
- IRT models
IRF (Item Response Function), TRF (Test Response Function), IIF (Item Information Function), TIF (Test Information Function)
- LCA/LRA models
IRP (Item Reference Profile), TRP (Test Reference Profile), LCD/LRD (Latent Class/Rank Distribution), CMP/RMP (Class/Rank Membership Profile)
- Biclustering/IRM models
Array plots showing clustering patterns, FRP, TRP, etc.
- LDLRA/LDB/BINET models
Network and profile plots specific to each model
Examples
## Not run:
# IRT model example
irt_result <- exametrika::IRT(U)
plot(irt_result, type = "IRF", items = 1:5)
plot(irt_result, type = "TIF")
# LCA model example
lca_result <- exametrika::LCA(U)
plot(lca_result, type = "IRP")
plot(lca_result, type = "LCD")
## End(Not run)