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 [[.
RasterStack
[[
plot(r[[1]])