Skip to content

Commit

Permalink
Add documentation showing rnet_merge() working on projected data
Browse files Browse the repository at this point in the history
  • Loading branch information
Robinlovelace committed Oct 5, 2023
1 parent 1f31f69 commit 18c63b8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions R/rnet_join.R
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,12 @@ line_cast <- function(x) {
#' plot(rnet_merged["flow"], add = TRUE, lwd = 2)
#'
#' # # With a different CRS
#' rnet_xp <- sf::st_transform(rnet_x, "EPSG:27700")
#' rnet_yp <- sf::st_transform(rnet_y, "EPSG:27700")
#' rnet_merged <- rnet_merge(rnet_xp[1], rnet_yp[c("flow", "quietness")],
#' dist = 9, segment_length = 20, funs = funs
#' )
#' plot(rnet_merged["flow"])
#' # rnet_merged2 = rnet_merge(rnet_x[1], rnet_y[c("flow", "quietness")],
#' # dist = 9, segment_length = 20, funs = funs,
#' # crs = "EPSG:27700")
Expand Down

0 comments on commit 18c63b8

Please sign in to comment.