Project ROI features to two dimensions (UMAP or PCA) and map polar angle to hue, yielding palettes that look globally structured.
Arguments
- rois
Tibble with one ROI per row containing `roi`, `x`, `y`, and `z`.
- id_col
Column containing ROI IDs.
- feature_cols
Character vector of numeric or categorical columns that will be embedded (passed to `stats::model.matrix()`).
- hemi_col
Optional hemisphere column used for the final light/dark adjustment.
- method
Either `"umap"` (requires the `uwot` package) or `"pca"`.
- C_range
Chroma range mapped from radial distance in the embedding.
- L
Lightness value used for all ROIs before hemispheric adjustments.
- seed
Random seed for reproducibility.