Skip to content

Commit ecbfae6

Browse files
closes #15
1 parent 07627a2 commit ecbfae6

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

vignettes/uci.Rmd

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,7 @@ ggplot(data = grid) +
7474
## Calculating UCI
7575

7676
In the example below, we calculate how mono/polycentric our study area is considering its spatial distribution of jobs.
77-
78-
Mind you that, by default, the `uci()` functions uses Euclidean distances between polygons.
79-
* The `uci` function now has a new parameter `dist_type` that allows users to choose whether calculations should be based on `"euclidean"` distances (Default) or `"spatial_link"` distances. Spatial link distances consider Euclidean distances along the links of spatial neighbour links. In the case of areas with a concave shape (like a bay), it is strongly recommended to use `"spatial_link"` distances (even though they are computationally more costly) because simple Euclidean distances can bias UCI estimates in those cases.
80-
81-
77+
8278
```{r, eval = TRUE}
8379
df <- uci(
8480
sf_object = grid,
@@ -88,9 +84,10 @@ df <- uci(
8884
8985
head(df)
9086
```
91-
By default, the `uci()` functions uses Euclidean distances between polygons. However, Euclidean distances can lead to misleading results in the case of areas with a concave shape (like a bay). In these cases, it is strongly recommended to use `dist_type = 'spatial_link'` distances, even though they are a bit computationally more costly.
9287

93-
Mind you that when using `"spatial_link"` distances, there should be no disconnected island of polygon (or group of polygons). In some cases, users might need to manually edit their spatial data to include a polygon representing a road or bridge connecting disconnected parts of the area.
88+
By default, the `uci()` function uses Euclidean distances between polygons. However, Euclidean distances can lead to misleading results in the case of areas with a concave shape (like a bay). In these cases, it is strongly recommended to use `dist_type = 'spatial_link'`. These spatial link distances consider Euclidean distances along the links of spatial neighbour links. This is a bit more costly computationally speaking, but it does return more realistic results.
89+
90+
Mind you, though, that when using `"spatial_link"` distances, there should be no disconnected island of polygon (or group of polygons). In some cases, users might need to manually edit their spatial data to include a polygon representing a road or bridge connecting disconnected parts of the area.
9491

9592
```{r, eval = TRUE}
9693
df <- uci(

0 commit comments

Comments
 (0)