EVOLUTION-MANAGER
Edit File: SpatialPoints-class.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: Class "SpatialPoints"</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 SpatialPoints-class {sp}"><tr><td>SpatialPoints-class {sp}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Class "SpatialPoints" </h2> <h3>Description</h3> <p> Class for (irregularly spaced) points </p> <h3>Objects from the Class</h3> <p>Objects can be created by calls of the form <code>SpatialPoints(x)</code>. </p> <h3>Slots</h3> <dl> <dt><code>coords</code>:</dt><dd><p>Object of class <code>"matrix"</code>, containing the coordinates (each row is a point) </p> </dd> <dt><code>bbox</code>:</dt><dd><p>Object of class <code>"matrix"</code>, with bounding box </p> </dd> <dt><code>proj4string</code>:</dt><dd><p>Object of class <code>"CRS"</code>, projection string </p> </dd> </dl> <h3>Extends</h3> <p>Class <code>"Spatial"</code>, directly. </p> <h3>Methods</h3> <dl> <dt>[</dt><dd><p><code>signature(x = "SpatialPoints")</code>: subsets the points; only rows (points) can be subsetted </p> </dd> <dt>coerce</dt><dd><p><code>signature(from = "SpatialPoints", to = "data.frame")</code>: retrieves the data part</p> </dd> <dt>coerce</dt><dd><p><code>signature(from = "SpatialPoints", to = "SpatialPixels")</code>: equivalent to assigning gridded TRUE for a copy of the object</p> </dd> <dt>coerce</dt><dd><p><code>signature(from = "SpatialPointsDataFrame", to = "SpatialPixelsDataFrame")</code>: equivalent to assigning gridded TRUE for a copy of the object</p> </dd> <dt>coerce</dt><dd><p><code>signature(from = "data.frame", to = "SpatialPoints")</code>: sets coordinates, which may be in a data frame </p> </dd> <dt>coerce</dt><dd><p><code>signature(from = "matrix", to = "SpatialPoints")</code>: set coordinates, which may be in a matrix </p> </dd> <dt>coordinates</dt><dd><p><code>signature(obj = "SpatialPoints")</code>: retrieves the coordinates, as matrix </p> </dd> <dt>plot</dt><dd><p><code>signature(x = "SpatialPoints", y = "missing")</code>: plot points</p> </dd> <dt>summary</dt><dd><p><code>signature(object = "SpatialPoints")</code>: summarize object</p> </dd> <dt>points</dt><dd><p><code>signature(x = "SpatialPoints")</code>: add point symbols to plot</p> </dd> <dt>show</dt><dd><p><code>signature(object = "SpatialPoints")</code>: prints coordinates </p> </dd> <dt>rbind</dt><dd><p><code>signature(object = "SpatialPoints")</code>: rbind-like method </p> </dd> </dl> <h3>plot method arguments</h3> <p>The plot method for “SpatialPoints” objects takes the following arguments: </p> <dl> <dt>x</dt><dd><p>object of class SpatialPoints</p> </dd> <dt>pch</dt><dd><p>default 3; either an integer specifying a symbol or a single character to be used as the default in plotting points</p> </dd> <dt>axes</dt><dd><p>default FALSE; a logical value indicating whether both axes should be drawn </p> </dd> <dt>add</dt><dd><p>default FALSE; add to existing plot</p> </dd> <dt>xlim</dt><dd><p>default NULL; the x limits (x1, x2) of the plot</p> </dd> <dt>ylim</dt><dd><p>default NULL; the y limits of the plot</p> </dd> <dt>...</dt><dd><p>passed through</p> </dd> <dt>setParUsrBB</dt><dd><p>default FALSE; set the <code>par</code> “usr” bounding box, see note in <a href="Spatial-class.html">Spatial-class</a></p> </dd> <dt>cex</dt><dd><p>default 1; numerical value giving the amount by which plotting text and symbols should be magnified relative to the default</p> </dd> <dt>col</dt><dd><p>default 1; default plotting color</p> </dd> <dt>lwd</dt><dd><p>default 1; line width</p> </dd> <dt>bg</dt><dd><p>default 1; colour to be used for the background of the device region</p> </dd> </dl> <h3>Author(s)</h3> <p> Edzer Pebesma, <a href="mailto:edzer.pebesma@uni-muenster.de">edzer.pebesma@uni-muenster.de</a> </p> <h3>See Also</h3> <p><code><a href="SpatialPointsDataFrame-class.html">SpatialPointsDataFrame-class</a></code> </p> <h3>Examples</h3> <pre> x = c(1,2,3,4,5) y = c(3,2,5,1,4) S <- SpatialPoints(cbind(x,y)) S <- SpatialPoints(list(x,y)) S <- SpatialPoints(data.frame(x,y)) S plot(S) </pre> <hr /><div style="text-align: center;">[Package <em>sp</em> version 1.4-2 <a href="00Index.html">Index</a>]</div> </body></html>