View source: R/plot_icm_stanfit.R
plot.icm_stanfit | R Documentation |
This function provides a plot method for objects of class icm_stanfit
.
## S3 method for class 'icm_stanfit'
plot(x, ...)
x |
An object of class |
... |
Additional arguments passed to the |
A plot generated by the plot_consensus()
function.
plot_consensus()
# Create minimal example data
df_simplex <- data.frame(
x1 = c(0.3, 0.4, 0.2, 0.5),
x2 = c(0.3, 0.2, 0.4, 0.2),
x3 = c(0.4, 0.4, 0.4, 0.3)
)
id_person <- c(1, 1, 2, 2)
id_item <- c(1, 2, 1, 2)
# Fit ICM model
fit <- fit_icm(df_simplex, id_person, id_item, n_chains = 1,
iter_sampling = 100, iter_warmup = 100,
refresh = 0)
# Plot using S3 method
plot(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.