# I/O for raster images

See also Raster and Image Analysis (opens new window) and Input and Output (opens new window)

# 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)

(opens new window)

The individual layers of the RasterStack object can be adressed by [[.

plot(r[[1]])

(opens new window)