get_desire_lines | R Documentation |
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
.
get_desire_lines(region = NULL, n = NULL, omit_intrazonal = FALSE)
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?
|
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, ])
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.