get_pct | R Documentation |
This function gets data generated for the Propensity to Cycle Tool
project and returns objects in the modern sf
class.
get_pct(
base_url = "https://github.com/npct/pct-outputs-regional-notR/raw/master",
purpose = "commute",
geography = "lsoa",
region = NULL,
layer = NULL,
extension = ".geojson",
national = FALSE
)
base_url |
Where the data is stored. |
purpose |
Trip purpose (typically |
geography |
Geographic resolution of outputs, |
region |
The PCT region or local authority to download data from (e.g. |
layer |
The PCT layer of interest, |
extension |
The type of file to download (only |
national |
Download nationwide data? |
## Not run:
rf = get_pct(region = "isle-of-wight", layer = "rf")
names(rf)[1:20]
vars_to_plot = 10:13
plot(rf[vars_to_plot])
z = get_pct(region = "isle-of-wight", layer = "z")
rf = get_pct(region = "west-yorkshire", layer = "rf")
z_all = get_pct(layer = "z", national = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.