EVOLUTION-MANAGER
Edit File: scalebar.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: scalebar</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 scalebar {raster}"><tr><td>scalebar {raster}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>scalebar</h2> <h3>Description</h3> <p>Add a scalebar to a plot </p> <h3>Usage</h3> <pre> scalebar(d, xy = NULL, type = "line", divs = 2, below = "", lonlat = NULL, label, adj=c(0.5, -0.5), lwd = 2, ...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>d</code></td> <td> <p>distance covered by scalebar</p> </td></tr> <tr valign="top"><td><code>xy</code></td> <td> <p>x and y coordinate to place the plot. Can be NULL. Use <code>xy=click()</code> to make this interactive </p> </td></tr> <tr valign="top"><td><code>type</code></td> <td> <p>"line" or "bar"</p> </td></tr> <tr valign="top"><td><code>divs</code></td> <td> <p>Number of divisions for a bar type. 2 or 4</p> </td></tr> <tr valign="top"><td><code>below</code></td> <td> <p>Text to go below scalebar (e.g., "kilometers")</p> </td></tr> <tr valign="top"><td><code>lonlat</code></td> <td> <p>Logical or NULL. If logical, <code>TRUE</code> indicates if the plot is using longitude/latitude coordinates. If <code>NULL</code> this is guessed from the plot's coordinates</p> </td></tr> <tr valign="top"><td><code>adj</code></td> <td> <p>adjustment for text placement</p> </td></tr> <tr valign="top"><td><code>label</code></td> <td> <p>Vector of three numbers to label the scale bar (beginning, midpoint, end)</p> </td></tr> <tr valign="top"><td><code>lwd</code></td> <td> <p>line width for the "line" type scalebar</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>arguments to be passed to other methods </p> </td></tr> </table> <h3>Value</h3> <p>None. Use for side effect of a scalebar added to a plot </p> <h3>Author(s)</h3> <p>Robert J. Hijmans; partly based on a function by Josh Gray </p> <h3>See Also</h3> <p><code><a href="plot.html">plot</a></code> </p> <h3>Examples</h3> <pre> f <- system.file("external/test.grd", package="raster") r <- raster(f) plot(r) scalebar(1000) scalebar(1000, xy=c(178000, 333500), type='bar', divs=4) </pre> <hr /><div style="text-align: center;">[Package <em>raster</em> version 3.3-13 <a href="00Index.html">Index</a>]</div> </body></html>