View source: R/additive-compare.R
| plot.latents_family_enumeration | R Documentation |
One line per model code, criterion against the number of group classes; models are told apart by colour, point shape and line type.
## S3 method for class 'latents_family_enumeration'
plot(
x,
criterion = c("bic", "aic", "bic_individual"),
main = NULL,
subtitle = NULL,
...
)
x |
A |
criterion |
|
main, subtitle |
Optional title and subtitle. |
... |
Unused. |
A ggplot object. Raises latents_missing_package without ggplot2.
set.seed(1)
ratings <- data.frame(
team = rep(seq_len(40), each = 6),
climate = rep(rnorm(40, rep(c(-1, 1), each = 20), 0.5), each = 6) +
rnorm(240))
grid <- enumerate_classes(ratings, "climate", "team",
family = c("additive", "dispersion"),
n_group_classes = 1:2, n_starts = 3, seed = 1)
if (requireNamespace("ggplot2", quietly = TRUE)) plot(grid)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.