
Export every core and its outline to an interactive HTML page
Source:R/plots.R
export_outline_html.RdWrites a self-contained HTML page with one 3-D view per core that has an
outline (see plot_core()) and a drop-down menu to switch between them.
Each view states the core's frame check and flatness (see
cpi_pra_batch()), so that cores whose scars and outline do not line up
can be found quickly.
Arguments
- data
A scar table with all cores.
- outlines
A named list of outlines, as for
cpi_pra_batch().- out_path
Path of the HTML file to write.
- id_col
Name of the core ID column. Default
"ID".- start_cols, end_cols
Names of the start- and end-point coordinate columns (X, Y, Z). Defaults
Start_X/Y/ZandEnd_X/Y/Z, the columns the scars are recorded in. The aligned columns ofalign_scar_batch()(s_x... ande_x...) give the same results: these indices do not change when a core is rotated or moved.- min_length
Scars shorter than this (in the units of the coordinates) are left out. Default 0 (keep all). Use it to repeat an analysis without small scars, for example
min_length = 10for 10 mm.
Examples
if (FALSE) { # \dontrun{
outlines <- read_outline_iges(list.files("outlines", full.names = TRUE))
export_outline_html(scars, outlines, "outline_check.html")
} # }