Skip to main content
100%

Gist 9587685

✓ Published0🌍 Public
RRCura
Last edited Mar 16, 2014
Created on Mar 16, 2014

This example maps user-uploaded shapefiles by plotting their polygon boundaries in a main panel. It uses R’s `shiny` framework with `server.R` and `ui.R` files, relying on the `maptools` library’s `readShapePoly` function to load the spatial data. A reactive `uploadShpfile` expression handles file renaming and directory switching for multiple uploaded components, while `renderPlot` and `plotOutput` display the resulting map. The interface provides a sidebar `fileInput` for selecting shapefiles and a central plot area for visualization.

AI-generated description

Similar vizzes