PrepMap: Prepare your data and spatial data for SurvMapper (ggplot)

Description Usage Arguments Examples

View source: R/PrepMap.R

Description

Prepare your data and spatial data for SurvMapper (ggplot)

Usage

1
PrepMap(data, geo)

Arguments

data

Your data that you want to include in the map, including the variable GEO_ID with the correct codes

geo

Your geometry data, either SpatialPolygonsDataFrame or SpatialPointsDataFrame with variable GEO_ID

Examples

1
2
3
4
5
6
# load the included dummy data
load(system.file("extdata", "dummy_data.rds", package = "SurvMaps"))
# load the included EU/EEA SpatialPolygonsDataframe (includes Asia and Africa for background)
load(system.file("extdata", "EU_AFR_AS_plgs.rds", package = "SurvMaps"))

mymap <- PrepMap(data = dummy_data , geo = plg_map)

TommiKarki/SurvMaps documentation built on Oct. 4, 2018, 8:17 p.m.