Welcome to PPGISr, an R package for Public participatory GIS (PPGIS).
library(devtools)
install_github("https://github.com/GLISA-umich/PPGISr")
PPGISr comes with a sample map that loads as default. The example map provides an area of Minnesota and three land cover categories to choose from.
PPGISr::run_app()
You can also suggest which categories you would like to map (e.g. land use, environmental and social vulnerabilities).
PPGISr::run_app(mapping_categories = c("Trees",
"Flowers",
"Water"))
It is also possible to add colors that corresponds to these categories
## This must be a vector of the same length as the mapping categories
run_app(mapping_categories = c("flowers", "lake", "trees"),
mapping_colors = c("green", "red", "blue"))
Users can specify the editable map layer, allowing for different locations and regular geographic units with a desire resolution (e.g. census tract, regular tessellation) for decision-making
## We recommend using the sf library to load spatial vector data
library(sf)
## Spatial data should use World Geodetic System 1984 (WGS84) coordinate reference system(crs)
editable_map <- st_read(system.file("shape/nc.shp", package="sf"))
run_app(editable_map = editable_map, base_map = NULL)