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]])
Topic Id: 5539
Example Ids: 12242
This site is not affiliated with any of the contributors.
Content on the page is taken from Stack Overflow Documentation
This site is NOT affiliated with Stack Overflow or any of the contributors. | Privacy Policy | Terms of Service