Skip to content

Commit 49f6f89

Browse files
committed
replaced extent() with ext() functions in text descriptions and unpdated alt text descriptions to be shorter than 140 characters to prevent build issues.
1 parent 1281e09 commit 49f6f89

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

episodes/11-vector-raster-integration.Rmd

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,9 @@ CHM_plots_HARVcrop_sp_rand_sample = sample_n(CHM_plots_HARVcrop_sp, 10000)
252252
## Define an Extent
253253

254254
So far, we have used a shapefile to crop the extent of a raster dataset.
255-
Alternatively, we can also the `extent()` function to define an extent to be
255+
Alternatively, we can also the `ext()` function to define an extent to be
256256
used as a cropping boundary. This creates a new object of class extent. Here we
257-
will provide the `extent()` function our xmin, xmax, ymin, and ymax (in that
257+
will provide the `ext()` function our xmin, xmax, ymin, and ymax (in that
258258
order).
259259

260260
```{r}
@@ -305,7 +305,8 @@ for example, plot locations that we are sampling on the ground. We can extract
305305
all pixel values within 20m of our x,y point of interest. These can then be
306306
summarized into some value of interest (e.g. mean, maximum, total).
307307

308-
![Extract raster information using a polygon boundary. From https://www.neonscience.org/sites/default/files/images/spatialData/BufferSquare.png](fig//BufferSquare.png){alt = "Extract raster information using a polygon boundary. From https://www.neonscience.org/sites/default/files/images/spatialData/BufferSquare.png"}
308+
![](fig//BufferSquare.png){alt='Image shows raster information extraction using 20m polygon boundary'}
309+
Image Source: https://www.neonscience.org/sites/default/files/images/spatialData/BufferSquare.png
309310

310311
To do this in R, we use the `extract()` function. The `extract()` function
311312
requires:
@@ -378,7 +379,8 @@ point. By default, the units of the buffer are the same units as the data's
378379
CRS. All pixels that are touched by the buffer region are included in the
379380
extract.
380381

381-
![Extract raster information using a buffer region. From: https://www.neonscience.org/sites/default/files/images/spatialData/BufferCircular.png](fig/BufferCircular.png){alt = "Extract raster information using a buffer region. From: https://www.neonscience.org/sites/default/files/images/spatialData/BufferCircular.png"}
382+
![](fig/BufferCircular.png){alt='Image shows raster information extraction using 20m buffer region.'}
383+
Image Source: https://www.neonscience.org/sites/default/files/images/spatialData/BufferCircular.png
382384

383385
Source: National Ecological Observatory Network (NEON).
384386

@@ -437,7 +439,7 @@ ggplot(data = mean_tree_height_plots_HARV, aes(ID, HARV_chmCrop)) +
437439
- Use the `crop()` function to crop a raster object.
438440
- Use the `extract()` function to extract pixels from a raster object that fall
439441
within a particular extent boundary.
440-
- Use the `extent()` function to define an extent.
442+
- Use the `ext()` function to define an extent.
441443

442444
::::::::::::::::::::::::::::::::::::::::::::::::::
443445

0 commit comments

Comments
 (0)