I/O for raster images
Introduction#
See also Raster and Image Analysis and Input and Output
Load a multilayer raster
The R-Logo is a multilayer raster file (red, green, blue)
library(raster)
r <- stack("C:/Program Files/R/R-3.2.3/doc/html/logo.jpg")
plot(r)
The individual layers of the RasterStack
object can be adressed by [[
.
plot(r[[1]])