Skip to content

Commit e5ed56f

Browse files
committed
markdown source builds
Auto-generated via `{sandpaper}` Source : c99bee2 Branch : main Author : Jon Jablonski <jonjab@ucsb.edu> Time : 2025-08-12 15:51:30 +0000 Message : Merge pull request #490 from mneilson-usgs/ep_5_fix Fix plotRGB errors in Ep. 5
1 parent c34ae43 commit e5ed56f

4 files changed

Lines changed: 3 additions & 9 deletions

05-raster-multi-band-in-r.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -337,25 +337,19 @@ range of potential values to increase the visual contrast of the image.
337337
``` r
338338
plotRGB(RGB_stack_HARV,
339339
r = 1, g = 2, b = 3,
340-
scale = 800,
341340
stretch = "lin")
342341
```
343342

344-
``` error
345-
Error in grDevices::rgb(RGB[, 1], RGB[, 2], RGB[, 3], alpha = alpha, maxColorValue = scale): alpha level 800, not in 0:255
346-
```
343+
<img src="fig/05-raster-multi-band-in-r-rendered-plot-rbg-image-linear-1.png" style="display: block; margin: auto;" />
347344

348345

349346
``` r
350347
plotRGB(RGB_stack_HARV,
351348
r = 1, g = 2, b = 3,
352-
scale = 800,
353349
stretch = "hist")
354350
```
355351

356-
``` error
357-
Error in grDevices::rgb(RGB[, 1], RGB[, 2], RGB[, 3], alpha = alpha, maxColorValue = scale): alpha level 800, not in 0:255
358-
```
352+
<img src="fig/05-raster-multi-band-in-r-rendered-plot-rgb-image-hist-1.png" style="display: block; margin: auto;" />
359353

360354
In this case, the stretch doesn't enhance the contrast our image significantly
361355
given the distribution of reflectance (or brightness) values is distributed
455 KB
Loading
508 KB
Loading

md5sum.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"episodes/02-raster-plot.Rmd" "e82d10a97a16d06e9e780bd61c4483c9" "site/built/02-raster-plot.md" "2025-08-05"
99
"episodes/03-raster-reproject-in-r.Rmd" "dbe38436da1d91d4eb9e7c9aef1aad09" "site/built/03-raster-reproject-in-r.md" "2025-08-05"
1010
"episodes/04-raster-calculations-in-r.Rmd" "091de4689ef64107ec26c718866bd0a6" "site/built/04-raster-calculations-in-r.md" "2025-08-05"
11-
"episodes/05-raster-multi-band-in-r.Rmd" "b2958efdf814a0f214d4b5f9c3ee2a76" "site/built/05-raster-multi-band-in-r.md" "2025-08-05"
11+
"episodes/05-raster-multi-band-in-r.Rmd" "f503b06794c529d0d184344ecf0517bf" "site/built/05-raster-multi-band-in-r.md" "2025-08-12"
1212
"episodes/06-vector-open-shapefile-in-r.Rmd" "6b1609d92137802c7f0026f8fc4bbc93" "site/built/06-vector-open-shapefile-in-r.md" "2025-08-05"
1313
"episodes/07-vector-shapefile-attributes-in-r.Rmd" "8f3c5595f7c56ae75b8ffb9ef213f512" "site/built/07-vector-shapefile-attributes-in-r.md" "2025-08-12"
1414
"episodes/08-vector-plot-shapefiles-custom-legend.Rmd" "958ea3185523466d2e16b1ba392eec0a" "site/built/08-vector-plot-shapefiles-custom-legend.md" "2025-08-05"

0 commit comments

Comments
 (0)