Skip to content

Commit

Permalink
Add final worked example
Browse files Browse the repository at this point in the history
  • Loading branch information
Robinlovelace committed Jul 4, 2021
1 parent df0b892 commit 4826f1d
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions data-raw/slides.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -357,9 +357,15 @@ See [`roadnetworkcycling`](https://itsleeds.github.io/slopes/articles/roadnetwor

---

background-image: url(https://raw.githubusercontent.com/ITSLeeds/slopes/master/man/figures/README-slope-vis-1.png)
background-size: 70%
background-position: bottom
## A smaller example using packaged data

```{r}
routes = lisbon_road_segments
dem = dem_lisbon_raster
routes$slope = slope_raster(routes, dem)
plot(dem)
plot(routes["slope"], add = TRUE)
```

---

Expand Down

0 comments on commit 4826f1d

Please sign in to comment.