
Render a static map from a Spatial Studio project bundle
Source:R/project.R
render_dragmapr_project.Rdrender_dragmapr_project() turns a Spatial Studio project ZIP, or an
extracted project directory, into the same ggplot2 image produced by
render_dragged_map(). It reads the saved source geometry, region offsets,
label offsets, label table, palette, and metadata, then validates that the
pieces still match before rendering.
Usage
render_dragmapr_project(
project,
file = NULL,
width = 10,
height = 8,
dpi = 300,
title = NULL,
quiet = FALSE,
...
)Arguments
- project
Path to a
dragmapr-project.zipfile or an extracted project directory created by Spatial Studio.- file
Optional output image path. When supplied, the rendered plot is saved with
ggplot2::ggsave().- width, height, dpi
Output settings used when
fileis supplied.- title
Optional plot title. Defaults to the title saved in project metadata, when available.
- quiet
Use
TRUEto suppress validation messages about zero-filled or extra offset rows.- ...
Additional arguments passed to
render_dragged_map(), such aslegend_position,show_legend, orlabel_marker_shape.
Examples
if(interactive()){
render_dragmapr_project("dragmapr-project.zip", file = "map.png")
}