| plotFCBR_gg | R Documentation |
This function takes exametrika ordinalBiclustering output as input and generates a Field Cumulative Boundary Reference (FCBR) plot using ggplot2. The plot shows cumulative probability curves for each category boundary across latent classes or ranks. For each field, multiple lines represent the probability of scoring at or above each category boundary.
plotFCBR_gg(
data,
fields = NULL,
title = TRUE,
colors = NULL,
linetype = NULL,
show_legend = TRUE,
legend_position = "right"
)
data |
An object of class |
fields |
Integer vector specifying which fields to plot. Default is all fields. |
title |
Logical or character. If |
colors |
Character vector. Colors for category boundary lines.
If |
linetype |
Character or numeric vector. Line types for category boundaries.
If |
show_legend |
Logical. If |
legend_position |
Character. Position of the legend.
One of |
The Field Cumulative Boundary Reference (FCBR) visualizes how the probability of reaching each category boundary changes across latent classes or ranks in ordinal biclustering. This is particularly useful for understanding the difficulty of each response category threshold across different ability levels.
For a field with K categories (1, 2, ..., K), the FCBR shows:
Line 1: P(response >= 1 | class/rank) = 1.0 (always)
Line 2: P(response >= 2 | class/rank)
Line 3: P(response >= 3 | class/rank)
...
Line K: P(response >= K | class/rank)
The boundary probabilities are calculated by summing the probabilities of all categories at or above the boundary threshold. P(Q>=1) is always 1.0 and appears as a horizontal line at the top. Higher classes/ranks (higher ability) typically show higher probabilities for higher boundaries.
A single ggplot object with faceted subplots for each field.
plotFCRP_gg, plotScoreField_gg, plotArray_gg
library(exametrika)
# Ordinal biclustering example with polytomous data
result <- Biclustering(J35S500, ncls = 4, nfld = 5)
# Plot first 4 fields
plot <- plotFCBR_gg(result, fields = 1:4)
plot
# Custom colors and title (5 colors needed for 5-category ordinal data)
plot <- plotFCBR_gg(result,
fields = 1:5,
title = "Field Cumulative Boundary Reference",
colors = c("red", "blue", "green", "purple", "orange")
)
plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.