Visualization Gallery
Welcome to the Sequenzo visualization gallery. This page showcases the various types of plots and visualizations available in Sequenzo, providing a comprehensive overview of the visualization capabilities.
The gallery below displays examples of different visualization types, each designed to reveal different aspects of sequence data. Click on any image to view it in full size and explore the details.
Core Visualizations

Index Plot
A "barcode-like" visualization where each row is one sequence and each column is a time point. Reveals when sequences switch states, how stable they are, and how they differ across groups. Supports multiple sorting methods (lexicographic, MDS, distance-based) and flexible grouping options. Learn more →

State Distribution Plot
Shows how the share of entities in each state changes over time. Each time point displays the percentage of sequences in each state. Supports both stacked area plots and line plots, with flexible grouping for cross-group comparisons. Learn more →

Mean Time Plot
A horizontal bar chart showing the average amount of time spent in each state across all sequences. Optionally includes standard error bars to assess uncertainty. States are automatically sorted by mean time for easy interpretation. Learn more →

Modal State Plot
Shows the most common state (modal state) at each time point, along with its relative frequency (percentage). Highlights dominant patterns across sequences and supports grouping to compare modal trends across different categories. Learn more →

Most Frequent Sequences
Displays the Top-N most common full sequences in your data. Each horizontal bar represents one sequence pattern across time, with height showing that sequence's percentage in the dataset. Colors automatically match your SequenceData state color map. Learn more →

Relative Frequency Plot
A two-panel figure summarizing sequence "typicality" by frequency groups. Left panel shows the medoid (most central) sequence for each group; right panel shows box plots of dissimilarities to the medoid. Reports pseudo R², F-statistic, and p-value for group separation quality. Learn more →

Transition Matrix
A heatmap showing state-to-state transition rates. Rows represent the state at time t, columns represent the state at time t+1, and cell values show transition probabilities (0-1). The diagonal shows stay-in-the-same-state probabilities. Row-normalized so each row sums to 1.0. Learn more →
Customization Examples

Customized Index Plot
Sequenzo allows you to customize colors to match your preferences or publication requirements. This example shows an index plot with a custom color palette.

Customized Legend
Customize legend appearance and colors to create publication-ready visualizations that match your style guide or branding requirements.
Tips for Using These Visualizations
| Visualization | Best Use Cases & Key Features |
|---|---|
| Index Plot | Best for exploring individual sequence patterns, identifying when sequences switch states, assessing sequence stability, and comparing sequences across groups. Supports multiple sorting methods (lexicographic, MDS, distance-based) to reveal structure. Use sequence selection for large datasets. |
| Mean Time Plot | Provides an intuitive "how long in each state?" summary. Shows the average time spent in each state across all sequences with optional standard error bars for uncertainty assessment. Automatically sorts states by mean time for easy interpretation. |
| Modal State Plot | Highlights the dominant state at each time point along with its relative frequency. Ideal for identifying prevalent patterns over time. Supports grouping to compare modal trends across different categories (e.g., by gender, region, country type). |
| Most Frequent Sequences | Displays the Top-N most common full sequences, showing each as a stacked horizontal bar with percentage labels. Great for discovering typical trajectories and understanding what sequence patterns are most prevalent in your dataset. Similar to TraMineR's seqfplot. |
| Relative Frequency Plot | Summarizes sequence "typicality" by frequency groups using a two-panel layout: medoid sequences (left) and dissimilarity distributions (right). Reports statistical measures (pseudo R², F-statistic, p-value) for group separation quality. Requires a distance matrix. |
| State Distribution Plot | Shows how the percentage of sequences in each state changes over time. Supports both stacked area plots (showing composition) and line plots (comparing individual state trends). Excellent for understanding overall state composition and comparing distributions across groups. |
| Transition Matrix | A heatmap of state-to-state transition probabilities from time t to t+1. Dark cells indicate common transitions; light cells indicate rare transitions. The diagonal shows stay probabilities. Essential for understanding sequence evolution dynamics and transition patterns. |
For detailed information about each visualization type and how to use them, please refer to the individual documentation pages for each plot function.