piermorel/gramm
Gramm is a complete data visualization toolbox for Matlab. It provides an easy to use and high-level interface to produce publication-quality plots of complex data with varied statistical visualizations. Gramm is inspired by R's ggplot2 library.
Featured achievements
The project's latest awards
#1 Repository of the day
#1 Repository of the day
#1 Repository of the day
📈 Gramm: Declarative Grammar of Graphics for MATLAB
Write less code, get publication‑ready figures.
Gramm is a MATLAB toolbox created by piermorel that enables rapid creation of complex, publication‑quality figures. It follows a declarative approach, letting users specify the desired plot rather than writing imperative loops and conditionals. Inspired by R's ggplot2 and the grammar of graphics, it provides a high‑level interface for statistical visualization.
✨ Highlights
- Declarative syntax: Specify the final figure, not the step‑by‑step drawing commands.
- Grammar of graphics: Built on Wilkinson's grammar, mirroring ggplot2's philosophy.
- Layered construction: Combine raw data layers (points, lines) with statistical layers (fits, histograms).
- Faceting: Split data into subplots using facet_grid or facet_wrap.
- Variable mapping: Assign variables to color, shape, and other aesthetics.
- Time series support: Handles date and time data for trend visualization.
- Publication quality: Export high‑resolution figures suitable for journals.
- Interactive demos: Live scripts demonstrate grouped data, XY plots, time series, and online tables.
💡 Why it matters
Gramm shifts the workflow from low‑level drawing to high‑level description, reducing code volume and improving reproducibility. Its layered grammar makes it easy to add or remove visual elements, and the built‑in statistical layers let you visualize complex relationships without external toolboxes. The toolbox is particularly useful in fields like neuroscience, where clear, multi‑panel figures are essential.
#MATLAB #DataVisualization #GrammarOfGraphics #TiniX
Similar Projects
Discover other similar projects and AI models.
Bring data to life with SVG, Canvas and HTML. :bar_chart::chart_with_upwards_trend::tada:
Apache ECharts is a powerful, interactive charting and data visualization library for browser