trip.map: Plot map of origin and destination district(s)

Description Usage Arguments Value Author(s) See Also Examples

View source: R/hmob_funcs.R

Description

A function that maps the origin and destination(s) given district IDs

Usage

1
trip.map(a, b = NULL, distID = districtIDs, admin = adm, tol = 0.1)

Arguments

a

origin district (can take integer ID or character name)

b

destination district (can take integer ID or character name), default = NULL

distID

district IDs and names, expacts the districtIDs data object (NamNames.csv)

tol

tolerance argument passed to gSimplify, default = 0.1, set to zero for original

adm

administrative level 2 data, expects NAM_adm2.shp

Value

plotted map

Author(s)

John Giles

See Also

Other utility: check.distance.matrix(), get.admin.level(), get.legend(), get.names(), get.pop.vec(), get.unique.coords(), get.unique.names(), load.obj(), rjags.combine(), rjags.mcmc.list(), see()

Examples

1
2
3
4
5
par(mfrow=c(1,2))
trip.map(28, 20) # Generate map with district names
title(get.names(28, 20))
trip.map(42, c(16, 20, 1)) # Get map with multiple destinations
title(get.names(42))

gilesjohnr/hmob documentation built on Aug. 8, 2020, 1:26 a.m.