Skip to content

Commit

Permalink
Fix up vignette
Browse files Browse the repository at this point in the history
  • Loading branch information
Robinlovelace committed Aug 16, 2023
1 parent 7e4a430 commit 50ffc5e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
13 changes: 12 additions & 1 deletion man/rnet_merge.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions vignettes/merging-route-networks.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ plot(sf::st_geometry(rnet_x))
rnet_x = rnet_subset(rnet_x, rnet_y, dist = 20)
# nrow(rnet_x)
# plot(sf::st_geometry(rnet_x))
rnet_x = rnet_subset(rnet_x, rnet_y, dist = 20, min_x = 5, rm_short = TRUE)
rnet_x = rnet_subset(rnet_x, rnet_y, dist = 20, min_length = 5)
# summary(sf::st_length(rnet_x))
# nrow(rnet_x)
# plot(sf::st_geometry(rnet_x))
Expand Down Expand Up @@ -83,7 +83,7 @@ Reducing the max length of the complex route network led to the following result
rnet_merged = rnet_merge(rnet_x, rnet_y, dist = 20, segment_length = 5, funs = funs, dist_subset = 30)
m1 = tm_shape(rnet_y) + tm_lines("value", palette = "viridis", lwd = 5, breaks = brks)
m2 = tm_shape(rnet_merged) + tm_lines("value", palette = "viridis", lwd = 5, breaks = brks)
tmap_arrange(m1, m2, sync = TRUE, sync = TRUE)
tmap_arrange(m1, m2, sync = TRUE)
```

```{r, echo=FALSE, eval=FALSE}
Expand Down

0 comments on commit 50ffc5e

Please sign in to comment.