
Export an interactive Lin 2024 alignment HTML page
Source:R/align_lin2024.R
export_alignment_html_lin2024.RdBuilds three-panel Lin 2024 alignment visualisations for every specimen in
raw_data and writes a standalone interactive HTML file to out_path.
Arguments
- raw_data
A data frame with columns
Start_X/Y/Z,End_X/Y/Z,Norm_X/Y/Z,Pos_X/Y/Z, the ID column named byid_col, and optionallyLength.- out_path
Character. File path for the output HTML.
- id_col
Name of the specimen ID column. Default
"ID".- outlines
Optional named list of core outlines (named by ID), as returned by
read_outline_iges(), or planes fitted withfit_intersection_plane(). Each outline is drawn with its centre and moved through the same alignment steps as the scars of its core.
Details
The exported HTML is fully self-contained (Plotly loaded from CDN) and requires no R session to view. All specimen panels are serialised to JSON at export time; switching specimens in the browser is instant.
For the SVD-based equivalent, see export_alignment_html_svd().