lca = glca(item(DEFECT, HLTH, RAPE, POOR, SINGLE, NOMORE) ~ 1,
data = gss08, nclass = 3, na.rm = TRUE)
plot(lca)
# Given ordering number
lca321 = reorder(lca, 3:1)
plot(lca321)
# Descending order
dec_lca = reorder(lca, decreasing = TRUE)
plot(dec_lca)
# Ascending order
inc_lca = reorder(lca, decreasing = FALSE)
plot(inc_lca)
Run the code above in your browser using DataLab