| RasterPackage | R Documentation | 
The raster library stores its data as "RasterLayer" and "RasterBrick" objects. The raster package can store its data out-of-RAM, so in order not to load too much data the "maxpixels" argument sets a limit on how many pixels are loaded.
## S3 method for class 'RasterLayer' as.cimg(obj, maxpixels = 1e+07, ...) ## S3 method for class 'RasterStackBrick' as.imlist(obj, maxpixels = 1e+07, ...)
| obj | an object of class "RasterLayer" | 
| maxpixels | max. number of pixels to load (default 1e7) | 
| ... | ignored | 
Simon Barthelme, adapted from the image method for RasterLayer by Robert J Hijmans
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.