Skip to content

Commit fb0265e

Browse files
small update
1 parent b8c95a6 commit fb0265e

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ The first dataset is an sf data frame of neighborhoods in Amsterdam. This datase
6666
Run the following code for more information
6767

6868
```r
69-
library(GreenExp) # If GreenExp is not loaded yet
69+
library(GreenExp)
7070
?Ams_Neighborhoods
7171
```
7272

@@ -208,7 +208,7 @@ canopy_layer <- sf::st_read('path/to/canopy_layer.gpkg')
208208
# Select Marine-Etablissement
209209
df_point_canopy <- df_points[df$Buurt=='Marine-Etablissement',]]
210210

211-
canopy_pct(df_point_canopy, canopy_layer = canopy_layer, buffer_distance=200)
211+
GreenExp::canopy_pct(df_point_canopy, canopy_layer = canopy_layer, buffer_distance=200)
212212
```
213213

214214
<img src="man/figures/canopy.png" alt="Image" width="500" />
@@ -244,7 +244,7 @@ Based on these criteria, the following features from OSM are used:
244244
In the example below, the percentage of greenspaces is calculated for each address point within a euclidean buffer of 300m. The greenspace is based on the retrieved data from OSM.
245245

246246
``` r
247-
greenspace_pct(df_points, buffer_distance=300)
247+
GreenExp::greenspace_pct(df_points, buffer_distance=300)
248248
```
249249

250250
<img src="man/figures/Greenspace.png" alt="Image" width="500" />
@@ -273,8 +273,9 @@ Three examples will be provided. For the sake of visualization, one address poin
273273
In this example, the accessibility function is applied using the default settings, which involves calculating the euclidean distance from the address location to the nearest greenspace centroid. The figure below illustrates an example in Amsterdam, where the parks are represented by green polygons. The blue lines indicate the euclidean distance from the address location to the nearest park centroid. The park centroids are depicted as black points, while the address location is denoted by a red point. The code chunk beneath the plot provides the necessary code to receive the shortest distance from the address location.
274274

275275
``` r
276-
df_point <- df_points[8,]
277-
greenspace_access(df_point, buffer_distance = 300)
276+
df_point_access <- df_points[df$Buurt==Oostenburg’, ]
277+
278+
GreenExp::greenspace_access(df_point_access, buffer_distance = 300)
278279
```
279280
<img src="man/figures/access_euc_cen.png" alt="Image" width="500" />
280281

@@ -289,7 +290,7 @@ In this example, the accessibility function utilizes network distance to compute
289290

290291

291292
``` r
292-
greenspace_access(df_point, buffer_distance = 300, euclidean=F)
293+
GreenExp::greenspace_access(df_point_access, buffer_distance = 300, euclidean=F)
293294
```
294295

295296
<img src="man/figures/access_net_cen.png" alt="Image" width="500" />
@@ -301,7 +302,7 @@ greenspace_access(df_point, buffer_distance = 300, euclidean=F)
301302
In this example, the accessibility function considers network distance to the pseudo entrances of the greenspaces. The pseudo entrances are created by buffering the greenspace polygons and intersecting them with the network nodes. The function calculates the network distance from the address location to the nearest pseudo entrance point. The figure below presents an example in Amsterdam, where the parks are shown as green polygons. The blue lines indicate the euclidean distance from the address location to the nearest park centroid. The park centroids are depicted as black points, and the address location is represented by a red point. Additionally, you may observe multiple pseudo entrances within the parks, as roads passing through the parks can also serve as potential entrance points.
302303

303304
```r
304-
greenspace_access(df_point, buffer_distance=300, euclidean = F, pseudo_entrance = T)
305+
GreenExp::greenspace_access(df_point_access, buffer_distance=300, euclidean = F, pseudo_entrance = T)
305306

306307
# Simple feature collection with 1 feature and 3 fields
307308
# Geometry type: POINT
@@ -375,7 +376,7 @@ By utilizing this information and the corresponding code, the VGVI can be calcul
375376
<img src="man/figures/vgvi_sf.png" alt="Image" width="500" />
376377

377378
```r
378-
VGVI <- vgvi_from_sf(observer = df_points,
379+
VGVI <- GreenExp::vgvi_from_sf(observer = df_points,
379380
dsm_rast = DSM, dtm_rast = DEM, greenspace_rast = GS,
380381
max_distance = 200, observer_height = 1.7,
381382
m = 0.5, b = 8, mode = "logit")
@@ -394,7 +395,7 @@ The VGVI from sf function analyzes the VGVI at a specific observer point, while
394395

395396

396397
```r
397-
VGVI <- vgvi_from_address(address = df_points,
398+
VGVI <- GreenExp::vgvi_from_address(address = df_points,
398399
dsm_rast = DSM, dtm_rast = DEM, greenspace_rast = GS,
399400
max_distance = 200, observer_height = 1.7,
400401
m = 0.5, b = 8, mode = "logit")

0 commit comments

Comments
 (0)