I/O for raster images

Introduction

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



2016-08-18
2017-02-15
R Language Pedia
Icon