Description Usage Arguments Value Author(s) References Examples
Function that converts output of get_od_data or get_od_subset into a format that enables plotting of job flows from residence to workplace areas. The function creates centroids for each census block and joins the coordinates of these onto the workplace and residence census blocks.
1 |
df |
Requires as input an output dataframe of get_od_data or get_od_subset. |
Returns a dataframe with two individual simple feature collection columns containing the point geometries for the workplace area census blocks and the residence area census blocks.
Ballantyne, Patrick
LODES data available to download manually from: https://lehd.ces.census.gov/data/lodes/LODES7/
1 2 3 4 5 | ## Get OD data for Illinois, for 2014
df <- get_od_data("il", "2014")
## Convert to format that enables linestring plotting
df2 <- get_od_spatial(df)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.