EVOLUTION-MANAGER
Edit File: RGB.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Create a Red-Green-Blue Raster object</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for RGB {raster}"><tr><td>RGB {raster}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Create a Red-Green-Blue Raster object</h2> <h3>Description</h3> <p>Make a Red-Green-Blue object that can be used to create images. </p> <h3>Usage</h3> <pre> ## S4 method for signature 'RasterLayer' RGB(x, filename='', col=rainbow(25), breaks=NULL, alpha=FALSE, colNA='white', zlim=NULL, zlimcol=NULL, ext=NULL, ...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>x</code></td> <td> <p>RasterLayer</p> </td></tr> <tr valign="top"><td><code>filename</code></td> <td> <p>character. Output filename (optional)</p> </td></tr> <tr valign="top"><td><code>col</code></td> <td> <p>A color palette, that is a vector of n contiguous colors generated by functions like <a href="../../grDevices/html/palettes.html">rainbow</a>, <a href="../../grDevices/html/palettes.html">heat.colors</a>, <a href="../../grDevices/html/palettes.html">topo.colors</a>, <a href="../../sp/html/bpy.colors.html">bpy.colors</a> or one or your own making, perhaps using <code><a href="../../grDevices/html/colorRamp.html">colorRampPalette</a></code>. If none is provided, <code>rev(terrain.colors(255))</code> is used unless <code>x</code> has a 'color table'</p> </td></tr> <tr valign="top"><td><code>breaks</code></td> <td> <p>numeric. A set of finite numeric breakpoints for the colours: must have one more breakpoint than colour and be in increasing order</p> </td></tr> <tr valign="top"><td><code>alpha</code></td> <td> <p>If <code>TRUE</code> a fourth layer to set the background transparency is added</p> </td></tr> <tr valign="top"><td><code>colNA</code></td> <td> <p>color for the background (<code>NA</code> values)</p> </td></tr> <tr valign="top"><td><code>zlim</code></td> <td> <p>vector of lenght 2. Range of values to plot</p> </td></tr> <tr valign="top"><td><code>zlimcol</code></td> <td> <p>If <code>NULL</code> the values outside the range of zlim get the color of the extremes of the range. If zlimcol has any other value, the values outside the zlim range get the color of <code>NA</code> values (see colNA)</p> </td></tr> <tr valign="top"><td><code>ext</code></td> <td> <p>An <code><a href="Extent-class.html">Extent</a></code> object to zoom in to a region of interest (see <code><a href="drawExtent.html">drawExtent</a></code>)</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>additional arguments as for <code><a href="writeRaster.html">writeRaster</a></code></p> </td></tr> </table> <h3>Value</h3> <p>RasterBrick</p> <h3>See Also</h3> <p><code><a href="plotRGB.html">plotRGB</a></code> </p> <h3>Examples</h3> <pre> r <- raster(system.file("external/test.grd", package="raster")) x <- RGB(r) plot(x, col=gray(0:9/10)) plotRGB(x) </pre> <hr /><div style="text-align: center;">[Package <em>raster</em> version 3.3-13 <a href="00Index.html">Index</a>]</div> </body></html>