Hierarchy & Bloom advanced
Parent/child bloom lets you drill into sub-regions with a leaf-flip animation while keeping the rest of the map at parent level.
detect_hierarchy_columns(x)
Scan all columns and return candidate parent/child pairs based on nesting structure.
recommend_dragmapr_hierarchy(x)
Recommend the best grouping column and its child column, with a data-driven reason.
validate_bloom_hierarchy(x, parent_col, child_col)
Check that the child column genuinely nests inside the parent — required before arming a bloom transition.
make_hierarchy_key(x, cols)
Build stable composite keys when child names repeat across parents.
build_branch_transition_data(x, parent_col, child_col)
Build the transition list to pass to drag_map_prototype(), including dissolved parent shells and bloom group mappings.
make_branch_bloom_labels(x, …)
Build a combined label table covering both parent and child levels for a bloom helper.
inherit_layout(offsets, x, from_col, to_col)
Carry drag offsets from one grouping column to another (e.g. parent → child positions on first visit).
transition_options() / build_elastic_transition()
Create static transition frames and dotted group boundaries for package-level transition testing.
make_group_boundaries(x, group_col)
Return the padded dotted boundary geometry used as a group-drag frame.
# Typical bloom setup
td <- build_branch_transition_data(
my_sf, parent_col="region", child_col="state")
drag_map_prototype(td$data, "region",
transition=td$transition, open=TRUE)
Utilities & Diagnostics
dragmapr_diagnostics(x)
Report CRS, geometry type, column types, and potential issues before you start dragging.
profile_spatial_upload(x)
Summarise an uploaded file: row count, CRS, hierarchy candidates, recommended grouping.
summarise_spatial_crs(x)
Human-readable description of the CRS and whether reprojection is needed.
create_layout_snapshot() / restore_layout_snapshot()
Capture and restore offsets for a grouping while switching columns or sessions.
layout_metrics(before, after, id_col)
Measure drift and stability between two map layouts.
example_hhs_layout() / example_panel_layout()
Return small built-in layouts for testing and examples — no external data needed.
💡 Aliases make_labels(), read_label_offsets(), and apply_label_offsets() are kept for older scripts but emit deprecation warnings.