View source: R/PolyBiclustering.R
| plotFCRP_gg | R Documentation |
Creates a Field Category Response Profile (FCRP) plot for polytomous (ordinal or nominal) Biclustering results. FCRP displays the probability of each response category for each latent class/rank within each field.
plotFCRP_gg(
data,
style = c("line", "bar"),
title = TRUE,
colors = NULL,
linetype = NULL,
show_legend = TRUE,
legend_position = "right"
)
data |
An object of class |
style |
Character string specifying the plot style. One of:
|
title |
Logical or character. If |
colors |
Character vector of colors for categories. If |
linetype |
Character or numeric vector specifying line types for
|
show_legend |
Logical. If |
legend_position |
Character. Position of the legend. One of
|
FCRP (Field Category Response Profile) visualizes how response category
probabilities change across latent classes or ranks within each field.
For each field, the plot shows P(response = k | class/rank) for
all categories k. Probabilities sum to 1.0 for each class/rank.
This plot is only available for polytomous Biclustering models
(ordinalBiclustering, nominalBiclustering, or
ratedBiclustering) that have 3 or more response categories.
The style parameter allows two visualizations:
"line": Shows category probability curves as lines with points
"bar": Shows stacked bar chart with category proportions
A ggplot object showing category response probabilities for each field and latent class/rank.
plotFCBR_gg, plotScoreField_gg
library(exametrika)
# Ordinal Biclustering with 5 categories
result <- Biclustering(J35S500, ncls = 5, nfld = 5, method = "R")
# Line plot (default)
plotFCRP_gg(result, style = "line")
# Stacked bar chart
plotFCRP_gg(result, style = "bar")
# Custom styling
plotFCRP_gg(result,
style = "line",
title = "Category Response Patterns",
colors = c("#E69F00", "#56B4E9", "#009E73", "#F0E442", "#CC79A7")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.