EVOLUTION-MANAGER
Edit File: flowpath.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: Flow path</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 flowPath {raster}"><tr><td>flowPath {raster}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Flow path</h2> <h3>Description</h3> <p>Compute the flow path (drainage path) starting at a given point. See package <code>gdistance</code> for more path computations. </p> <h3>Usage</h3> <pre> flowPath(x, p, ...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>x</code></td> <td> <p>RasterLayer of flow direction (as can be created with <code><a href="terrain.html">terrain</a></code></p> </td></tr> <tr valign="top"><td><code>p</code></td> <td> <p>starting point. Either two numbers: x (longitude) and y (latitude) coordinates; or a single cell number </p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>additional arguments (none implemented)</p> </td></tr> </table> <h3>Value</h3> <p>numeric (cell numbers) </p> <h3>Author(s)</h3> <p>Ashton Shortridge</p> <h3>Examples</h3> <pre> data(volcano) v <- raster(volcano, xmn=2667400, xmx=2668010, ymn=6478700, ymx=6479570, crs="+init=epsg:27200") fd <- terrain(v, opt = "flowdir") path <- flowPath(fd, 2407) xy <- xyFromCell(fd, path) plot(v) lines(xy) </pre> <hr /><div style="text-align: center;">[Package <em>raster</em> version 3.3-13 <a href="00Index.html">Index</a>]</div> </body></html>