Creates a synthetic libs_dataset suitable for demonstrating package
features. Scenarios:
Usage
ls_example_data(
scenario = c("tissue", "calibration", "spatial", "all"),
seed = 42,
n_channels = 1024
)Details
"tissue"— 50 spectra from 5 tissue types (bone, liver, kidney, muscle, fat), 10 per type, with tissue-typical elemental signatures."calibration"— 27 spectra of Ca standards (9 concentrations x 3 replicates) with constant matrix (Na, K, Mg)."spatial"— 400 spectra on a 20x20 grid simulating a tissue cross-section with Ca/Fe gradients and a Zn-enriched hotspot."all"— named list of the above.
Examples
ds <- ls_example_data("tissue")
print(ds)
#> <libs_dataset>
#> • Spectra: 50
#> • Channels: 1024
#> • Range: 200-900 nm
#> • Groups: 5 (material)