get.names: Get title for any origin and destination

Description Usage Arguments Value Author(s) See Also Examples

View source: R/hmob_funcs.R

Description

Makes character strings given origin and destination and districtIDs. Use with trip.map function:

  1. The trip.map function takes the origin a and destination b and makes a simple map to visualize the districts being used. Origin is a blue triangle, destination is a red circle.

  2. The get.names function prints a 'from and to' character string with district names.

Usage

1
get.names(a, b = NULL, d = districtIDs)

Arguments

a

origin district (can take integer ID or character name)

b

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

d

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

Value

character string

Author(s)

John Giles

See Also

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

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.