get_desire_lines {pct} | R Documentation |
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. |
n |
top n number of destinations with most trips in the 2011 census
within the |
omit_intrazonal |
should intrazonal OD pairs be omited from result?
|
Examples
if(curl::has_internet()) {
desire_lines = get_desire_lines("wight")
plot(desire_lines)
intra_zonal = desire_lines$geo_code1 == desire_lines$geo_code2
plot(desire_lines[intra_zonal, ])
}
[Package pct version 0.9.9 Index]