Skip to content

Commit

Permalink
Merge pull request #61 from a-b-street/Robinlovelace-patch-1
Browse files Browse the repository at this point in the history
Update README.Rmd
  • Loading branch information
natesheehan authored Aug 19, 2021
2 parents 4e8d42e + 7cef35f commit b540663
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 13 deletions.
17 changes: 11 additions & 6 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,27 @@ knitr::opts_chunk$set(

<img src="https://user-images.githubusercontent.com/22789869/129973263-5fc74ae3-ed17-4155-9a8c-7f382f7796cc.png" align="left" height="164px" width="164px" margin="10%" />
--
**The goal of abstr is to provide an R interface to the [A/B Street](https://github.com/a-b-street/abstreet#ab-street) transport planning/simulation game.
Currently it provides a way to convert aggregated origin-destination data, combined with data on buildings representing origin and destination locations, into `.json` files that can be directly imported into the A/B Street city simulation.**

**abstr provides an R interface to the [A/B Street](https://github.com/a-b-street/abstreet#ab-street) transport system simulation and network editing software. It provides functions for converting origin-destination data, combined with data on buildings representing origin and destination locations, into `.json` files that can be directly imported into the A/B Street city simulation.**

See the formats page in the [A/B Street documentation](https://a-b-street.github.io/docs/tech/dev/formats/scenarios.html) for details of the schema that the package outputs.

## Installation

You can install the released version of abstr from
<!-- [CRAN](https://CRAN.R-project.org) with: -->
GitHub as follows:
[CRAN](https://CRAN.R-project.org) with:

```r
```{r, eval=FALSE}
install.packages("abstr")
```

Install the development version from GitHub as follows:

```{r, eval=FALSE}
remotes::install_github("a-b-street/abstr")
```

## Example
## Usage

The example below shows how `abstr` can be used.
The input datasets include `sf` objects representing buildings, origin-destination (OD) data represented as desire lines and administrative zones representing the areas within which trips in the desire lines start and end.
Expand Down
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@

## <img src="https://user-images.githubusercontent.com/22789869/129973263-5fc74ae3-ed17-4155-9a8c-7f382f7796cc.png" align="left" height="164px" width="164px" margin="10%" />

**The goal of abstr is to provide an R interface to the [A/B
**abstr provides an R interface to the [A/B
Street](https://github.com/a-b-street/abstreet#ab-street) transport
planning/simulation game. Currently it provides a way to convert
aggregated origin-destination data, combined with data on buildings
system simulation and network editing software. It provides functions
for converting origin-destination data, combined with data on buildings
representing origin and destination locations, into `.json` files that
can be directly imported into the A/B Street city simulation.**

Expand All @@ -24,13 +24,19 @@ for details of the schema that the package outputs.
## Installation

You can install the released version of abstr from
<!-- [CRAN](https://CRAN.R-project.org) with: --> GitHub as follows:
[CRAN](https://CRAN.R-project.org) with:

``` r
install.packages("abstr")
```

Install the development version from GitHub as follows:

``` r
remotes::install_github("a-b-street/abstr")
```

## Example
## Usage

The example below shows how `abstr` can be used. The input datasets
include `sf` objects representing buildings, origin-destination (OD)
Expand All @@ -44,7 +50,6 @@ U.S.
``` r
library(abstr)
library(tmap) # for map making
#> Warning: package 'tmap' was built under R version 4.0.5
tm_shape(montlake_zones) + tm_polygons(col = "grey") +
tm_shape(montlake_buildings) + tm_polygons(col = "blue") +
tm_style("classic")
Expand Down Expand Up @@ -72,7 +77,7 @@ The final piece of the `abstr` puzzle is OD data.

``` r
head(montlake_od)
#> # A tibble: 6 x 6
#> # A tibble: 6 × 6
#> o_id d_id Drive Transit Bike Walk
#> <dbl> <dbl> <int> <int> <int> <int>
#> 1 281 361 23 1 2 14
Expand Down
Binary file modified man/figures/README-input-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/README-outputplot-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b540663

Please sign in to comment.