8000 GitHub - paezha/canaccessR: Data Package For Transit Accessibility Analysis in Selected Canadian Metropolitan Areas
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

paezha/canaccessR

Repository files navigation

canaccessR

Package {canaccessR} is an Open Data Product with travel time tables to employment and groceries in selected Canadian Metropolitan Areas.

The package was initially developed for a writing project commissioned by the School of Cities of the University of Toronto, and can be used to replicate the results reported in the paper.

Installation

You can install the development version of canaccessR like so:

# install.packages("remotes")
remotes::install_github("paezha/canaccessR")

Example

This is a basic example which shows you how to solve a common problem:

library(canaccessR)
library(ggplot2)
library(sf)
#> Linking to GEOS 3.11.0, GDAL 3.5.3, PROJ 9.1.0; sf_use_s2() is TRUE

Load the travel time table to employment for Halifax:

data(travel_matrix_emp_hal)

The median travel time in minutes from all origins to all destinations in Halifax is:

median(travel_matrix_emp_hal$travel_time_p50)
#> [1] 65

Simple features objects for cartography are also included. For example, this is Quebec:

data("census_data_da_que")

Plot the population by Dissemination Area:

ggplot() +
  geom_sf(data = census_data_da_que,
          aes(fill = Population)) +
  scale_fill_fermenter(palette = "Reds",
                       direction = 1) +
  theme_minimal()

< 6797 img src="/paezha/canaccessR/raw/main/man/figures/README-unnamed-chunk-4-1.png" width="100%" style="max-width: 100%;">

We are currently working on a Data Paper.

About

Data Package For Transit Accessibility Analysis in Selected Canadian Metropolitan Areas

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  
0