Package: dragmapr 0.3.1

dragmapr: Create Draggable Plots from Projected Geometry
Creates interactive draggable plots from grouped projected 'sf' geometry. The primary deliverable is a browser-based 'D3' helper where regions and labels can be moved freely; users drag, then copy or download the resulting offset tables. Labels can be derived automatically with make_region_labels(), supplied directly with as_drag_labels(), and their moved positions saved and restored with read_label_state() and apply_label_state(). Hierarchical spatial datasets are supported via hierarchy detection, upload profiling, make_hierarchy_key(), and inherit_layout(), which recommend parent-child groupings and propagate parent-level drag offsets to finer child groupings. Automatic starting layouts are provided by suggest_offsets() using radial, grid, or directional algorithms. Spatial file diagnostics are available through d_diagnostics(). When a reproducible static image is also needed, render_dragged_map() reconstructs the layout as a 'ggplot2' plot from the source geometry plus the exported offset tables. Project bundles can be written with write_dragmapr_project() and rendered with render_dragmapr_project(). The interactive layer is built on the 'D3' library: Bostock, Ogievetsky and Heer (2011) <doi:10.1109/TVCG.2011.185>. Spatial data handling uses the 'sf' package: Pebesma (2018) <doi:10.32614/RJ-2018-009>.
Authors:
dragmapr_0.3.1.tar.gz
dragmapr_0.3.1.zip(r-4.7-any)dragmapr_0.3.1.zip(r-4.6-any)dragmapr_0.3.1.zip(r-4.5-any)
dragmapr_0.3.1.tgz(r-4.6-any)dragmapr_0.3.1.tgz(r-4.5-any)
dragmapr_0.3.1.tar.gz(r-4.7-any)dragmapr_0.3.1.tar.gz(r-4.6-any)
dragmapr_0.3.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
dragmapr/json (API)
| # Install 'dragmapr' in R: |
| install.packages('dragmapr', repos = c('https://prigasg.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/prigasg/dragmapr/issues
Pkgdown/docs site:https://prigasg.github.io
Last updated from:7ff659a098. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 240 | ||
| source / vignettes | OK | 239 | ||
| linux-release | OK | 232 | ||
| macos-release | OK | 231 | ||
| macos-oldrel | OK | 115 | ||
| windows-devel | OK | 118 | ||
| windows-release | OK | 129 | ||
| windows-oldrel | OK | 108 | ||
| wasm-release | OK | 209 |
Exports:add_spatial_featuresancestors_ofapply_dragmapr_stateapply_label_offsetsapply_label_stateapply_offsetsas_drag_annotationsas_drag_labelsbuild_branch_transition_databuild_elastic_transitionbuild_transition_planchildren_ofcollapse_drag_offsetscompose_offsetsconnector_sfcreate_layout_snapshotd_active_stated_addind_branch_offsetsd_child_stated_diagnosticsd_display_optionsd_editd_effective_offsetsd_geometry_optionsd_hierarchy_stated_historyd_history_pushd_iframe_bridged_interaction_optionsd_move_branchd_nudged_parent_stated_redod_relationshipsd_remove_child_stated_set_active_pathd_set_child_stated_snap_offsetsd_stated_state_diffd_state_equald_stylesd_undod_validate_stated_widgetd_widget_statedelete_spatial_featuresdescendants_ofdetect_hierarchy_columnsdrag_map_prototypedragmaprOutputeffective_offsetsexample_hhs_layoutexample_panel_layouthierarchy_pathinherit_drag_offsetsinherit_layoutkeep_spatial_featureslabel_connectorslayout_metricsmake_branch_bloom_labelsmake_group_boundariesmake_hierarchy_keymake_labelsmake_region_labelsmerge_dragmapr_statemerge_dragmapr_stylesmigrate_dragmapr_stateparent_ofprepare_dragmapr_sfprofile_spatial_uploadread_dragmapr_projectread_dragmapr_sf_uploadread_dragmapr_sf_urlread_dragmapr_stateread_label_offsetsread_label_stateread_offsetsrecommend_dragmapr_hierarchyregion_connectorsremove_spatial_featuresrender_dragged_maprender_dragmapr_projectrenderDragmaprreplace_spatial_featuresreset_allreset_labelreset_labelsreset_regionreset_regionsrestore_dragmapr_hierarchy_staterestore_dragmapr_staterestore_layout_snapshotselect_label_idssnapshot_dragmapr_hierarchy_statesnapshot_dragmapr_statespatial_feature_tablesuggest_offsetssummarise_spatial_crstransition_optionsupdate_label_offsetupdate_region_offsetupdateDragmaprvalidate_bloom_hierarchyvalidate_dragmapr_hierarchy_statevalidate_dragmapr_statevalidate_state_compatibilityview_spatial_featureswrite_dragmapr_projectwrite_dragmapr_state
Dependencies:base64encbslibcachemclassclassIntclicpp11DBIdigeste1071evaluatefarverfastmapfontawesomefsggplot2gluegtablehighrhtmltoolshtmlwidgetsisobandjquerylibjsonliteKernSmoothknitrlabelinglifecyclememoisemimeproxyR6rappdirsRColorBrewerRcpprlangrmarkdowns2S7sassscalessftinytexunitsvctrsviridisLitewithrwkxfunyaml
Last update: 2026-09-21
Started: 2026-09-21
Last update: 2026-08-11
Started: 2026-05-27
Last update: 2026-08-11
Started: 2026-05-27
Last update: 2026-08-11
Started: 2026-06-26
Last update: 2026-06-22
Started: 2026-06-05
Last update: 2026-06-22
Started: 2026-05-27
Last update: 2026-06-22
Started: 2026-06-05
Last update: 2026-06-05
Started: 2026-05-27