Publication-Quality Diagrams for Latent Variable Models
Overview
Converts output from latent variable model tools into publication-ready path diagrams and model schematics. 'lavaan' fit objects and parameter tables are supported as a primary workflow, with graph adapters for objects from 'blavaan', 'lavaan.mi', 'semPlot', 'mirt', 'eRm', 'OpenMx', 'psych', 'poLCA', 'mclust', 'flexmix', 'lcmm', 'tidyLPA', and 'MplusAutomation' workflows when those packages are available. Supports structural equation and confirmatory factor analysis diagrams, multilevel structural equation models, growth models, higher-order factor models, latent class and profile models, item response theory models, and common mixture outputs through a unified graph grammar with model-aware defaults, geometry diagnostics, layout quality scoring, automatic layout selection, customizable publication styles, 'RStudio' preview, SVG/PDF/PNG export, 'TikZ' output, and reproducible publication bundles. A local 'Shiny' editor supports mouse dragging of nodes and coefficient labels, synchronized figure downloads, and reusable editing state.
- Prepared editor exports now have request-specific files and URLs, preventing overlapping downloads and preview refreshes from sharing mutable state. Selection and locks are captured with the figure; expired URLs fail closed.
- Corrected the sign of eRm Rasch difficulty labels: eRm's beta parameters are item easinesses, so labels now use b = -beta.
- Added an evaluated model-examples vignette covering fitted CFA, SEM, ordinal, growth, two-level, multigroup, EFA, IRT, Rasch, mixture and RAM workflows, alongside a semPlot bridge and an explicitly unfitted bifactor specification.
- Added an Export preview tab using the full R rendering pipeline. The editing canvas remains responsive and now draws covariance arrowheads, variance loops, explicit curves, and coefficient labels above the diagram edges.
- Downloads require browser-state acknowledgement. Removed the timeout fallback that could export stale edits, and isolated download snapshots from live style changes. Node labels update locally before a following export request.
Show all changes in 0.1.1Hide the rest of the changes in 0.1.1
- Figure R downloads now include a self-contained graph snapshot, retaining filtering, coefficients, per-element styles and high-precision coordinates. State JSON validates its schema and model topology, with visible import errors and coefficient-label matching that survives edge reordering.
- Fixed style resets, node-label undo/redo, and repair of locked nodes. Resetting layout retains current display labels and coefficient-label formatting.
- Manual coefficient positions outside the node range are included in plot limits. Coordinate matrices with row names work; invalid or duplicate layout coordinates and graph identities now produce actionable errors.
- Removed invalid pooling of multigroup coefficients and p-values. Multigroup inputs show shared structure without pooled numeric labels; select individual groups in a parameter table for group-specific figures.
- Standardized labels no longer silently use raw estimates or other standardizations. Defined parameters and constraints do not create phantom nodes. Prepared graphs retain their displayed paths in publication bundles.
- Expanded the vignette into a worked tutorial covering fitting, editing, exporting, state restoration, reproducible code, styling, multiple groups, custom graphs, and troubleshooting. Added small regression cases to the default test suite; the long stress suite remains opt-in.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK6 OK2026-07-01
Documentation
- Help pages
- 20includes a package overview page
- Examples that run
- 100%14 run in a plain check
- Exported functions with examples
- 74%
- Documented parameters
- 79%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Dependencies
Installing lvmPlot adds no packages beyond those that come with R.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 0.1.1Latest
- 0.1.02026-06-30
- RR 4.6.0 released · 2026-04-24
Package metadata
- First published
- 2026-06-30
- Total releases
- 2 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1.0
- Download size
- 2.3 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("lvmPlot")The package provides a citation file that builds its entry when R runs it. Run citation() to see it.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.