Learn R Programming

pct (version 0.9.1)

get_desire_lines: Desire lines

Description

This function generates "desire lines" from census 2011 data. By default gets all desire lines from census in region, but can get the top n.

Usage

get_desire_lines(region = NULL, n = NULL, omit_intrazonal = FALSE)

Arguments

region

The PCT region or local authority to download data from (e.g. west-yorkshire or Leeds). See View(pct_regions_lookup) for a full list of possible region names.

n

top n number of destinations with most trips in the 2011 census within the region.

omit_intrazonal

should intrazonal OD pairs be omited from result? FALSE by default.

Examples

Run this code
# NOT RUN {
desire_lines = get_desire_lines("wight")
plot(desire_lines)
intra_zonal = desire_lines$geo_code1 == desire_lines$geo_code2
plot(desire_lines[intra_zonal, ])
# }

Run the code above in your browser using DataLab