EVOLUTION-MANAGER
Edit File: image.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: Image</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 image {raster}"><tr><td>image {raster}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Image</h2> <h3>Description</h3> <p>Create an "image" type plot of a RasterLayer. This is an implementation of a generic function in the graphics package. In most cases the <code><a href="plot.html">plot</a></code> function would be preferable because it produces a legend (and has some additional options). </p> <h3>Usage</h3> <pre> image(x, ...) ## S4 method for signature 'RasterLayer' image(x, maxpixels=500000, useRaster=TRUE, ...) ## S4 method for signature 'RasterStackBrick' image(x, y=1, maxpixels=100000, useRaster=TRUE, main, ...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>x</code></td> <td> <p>Raster* object</p> </td></tr> <tr valign="top"><td><code>maxpixels</code></td> <td> <p>integer > 0. Maximum number of cells to use for the plot. If <code>maxpixels < ncell(x)</code>, <code>sampleRegular</code> is used before plotting</p> </td></tr> <tr valign="top"><td><code>useRaster</code></td> <td> <p>If <code>TRUE</code>, the rasterImage function is used for plotting. Otherwise the image function is used. This can be useful if rasterImage does not work well on your system (see note)</p> </td></tr> <tr valign="top"><td><code>main</code></td> <td> <p>character. Main plot title</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>Any argument that can be passed to <code><a href="../../graphics/html/image.html">image</a></code> (graphics package)</p> </td></tr> <tr valign="top"><td><code>y</code></td> <td> <p>If <code>x</code> is a RasterStack or RasterBrick: integer, character (layer name(s)), or missing to select which layer(s) to plot</p> </td></tr> </table> <h3>Note</h3> <p>raster uses <code><a href="../../graphics/html/rasterImage.html">rasterImage</a></code> from the graphics package. For unknown reasons this does not work on Windows Server and on a few versions of Windows XP. On that system you may need to use argument <code>useRaster=FALSE</code> to get a plot. </p> <h3>See Also</h3> <p><code><a href="plot.html">plot</a></code>, <code><a href="../../graphics/html/image.html">image</a></code>, <code><a href="contour.html">contour</a></code></p> <h3>Examples</h3> <pre> r <- raster(system.file("external/test.grd", package="raster")) image(r) </pre> <hr /><div style="text-align: center;">[Package <em>raster</em> version 3.3-13 <a href="00Index.html">Index</a>]</div> </body></html>