Sequence Plots: heatmap, index, and distribution5 months ago
The dataset | 1. type = "heatmap" — clustered carpet | 1.1 Default — LCS distance, ward.D2 dendrogram | 1.2 Switch the sort strategy | 1.3 Cluster separators with k | 1.4 Legend position, custom palette, title | 1.5 Cell borders + tick thinning | 1.6 frame = TRUE brings back the outer box | 2. type = "index" — gap-ready carpet with facets | 2.1 Single panel | 2.2 Visible row gaps | 2.3 Faceted by net_clustering (auto 2×2 for k = 3) | 2.4 Force a 1×3 row | 3. type = "distribution" — state proportions over time | 3.1 Default stacked area | 3.2 Stacked bars, count scale | 3.3 NA band on/off | 3.4 Faceted by cluster | Cheat sheet
Nestimate 0.9.26Mohammed Saqr, Sonsoles López-Pernas, Kamila Misiejuksequence-plots.Rmd