| 1 |
\name{SpatialPoints-class} |
| 2 |
\docType{class} |
| 3 |
\alias{SpatialPoints-class} |
| 4 |
\alias{[,SpatialPoints-method} |
| 5 |
\alias{coerce,SpatialPoints,matrix-method} |
| 6 |
\alias{coerce,SpatialPoints,data.frame-method} % here??? |
| 7 |
\alias{coerce,SpatialPoints,SpatialPixels-method} % here??? |
| 8 |
\alias{coerce,SpatialPoints,Line-method} |
| 9 |
\alias{coerce,SpatialPoints,Lines-method} |
| 10 |
\alias{coerce,SpatialPoints,SpatialLines-method} |
| 11 |
\alias{coerce,SpatialPointsDataFrame,SpatialPixelsDataFrame-method} % here??? |
| 12 |
%\alias{coerce,SpatialPoints,data.frame-method} |
| 13 |
%\alias{coerce,data.frame,SpatialPoints-method} |
| 14 |
%\alias{coerce,matrix,SpatialPoints-method} |
| 15 |
% \alias{coordinates,SpatialPoints-method} |
| 16 |
\alias{show,SpatialPoints-method} |
| 17 |
%\alias{SpatialPoints} |
| 18 |
\alias{as.data.frame.SpatialPoints} |
| 19 |
\alias{plot,SpatialPoints,missing-method} |
| 20 |
\alias{summary,SpatialPoints-method} |
| 21 |
\alias{print.SpatialPoints} |
| 22 |
\alias{summary.SpatialPoints} |
| 23 |
\alias{rbind.SpatialPoints} |
| 24 |
\alias{$,SpatialPoints-method} |
| 25 |
\alias{$<-,SpatialPoints,character-method} |
| 26 |
\alias{row.names.SpatialPoints} |
| 27 |
\alias{coerce,ppp,SpatialPoints-method} |
| 28 |
|
| 29 |
|
| 30 |
\title{Class "SpatialPoints" } |
| 31 |
\description{ Class for (irregularly spaced) points } |
| 32 |
\section{Objects from the Class}{ |
| 33 |
Objects can be created by calls of the form \code{SpatialPoints(x)}. |
| 34 |
} |
| 35 |
\section{Slots}{ |
| 36 |
\describe{ |
| 37 |
\item{\code{coords}:}{Object of class \code{"matrix"}, containing the |
| 38 |
coordinates (each row is a point) } |
| 39 |
\item{\code{bbox}:}{Object of class \code{"matrix"}, with bounding box } |
| 40 |
\item{\code{proj4string}:}{Object of class \code{"CRS"}, projection string } |
| 41 |
} |
| 42 |
} |
| 43 |
\section{Extends}{ |
| 44 |
Class \code{"Spatial"}, directly. |
| 45 |
} |
| 46 |
\section{Methods}{ |
| 47 |
\describe{ |
| 48 |
\item{[}{\code{signature(x = "SpatialPoints")}: subsets the points; only |
| 49 |
rows (points) can be subsetted } |
| 50 |
\item{coerce}{\code{signature(from = "SpatialPoints", to = "data.frame")}: |
| 51 |
retrieves the data part} |
| 52 |
\item{coerce}{\code{signature(from = "SpatialPoints", to = "SpatialPixels")}: equivalent to assigning gridded TRUE for a copy of the object} |
| 53 |
\item{coerce}{\code{signature(from = "SpatialPointsDataFrame", to = "SpatialPixelsDataFrame")}: equivalent to assigning gridded TRUE for a copy of the object} |
| 54 |
\item{coerce}{\code{signature(from = "data.frame", to = "SpatialPoints")}: sets |
| 55 |
coordinates, which may be in a data frame } |
| 56 |
\item{coerce}{\code{signature(from = "matrix", to = "SpatialPoints")}: set |
| 57 |
coordinates, which may be in a matrix } |
| 58 |
\item{coordinates}{\code{signature(obj = "SpatialPoints")}: retrieves |
| 59 |
the coordinates, as matrix } |
| 60 |
\item{plot}{\code{signature(x = "SpatialPoints", y = "missing")}: plot points} |
| 61 |
\item{summary}{\code{signature(object = "SpatialPoints")}: summarize object} |
| 62 |
\item{points}{\code{signature(x = "SpatialPoints")}: add point symbols to plot} |
| 63 |
\item{show}{\code{signature(object = "SpatialPoints")}: prints coordinates } |
| 64 |
\item{rbind}{\code{signature(object = "SpatialPoints")}: rbind-like method } } |
| 65 |
} |
| 66 |
|
| 67 |
\section{plot method arguments}{ |
| 68 |
The plot method for \dQuote{SpatialPoints} objects takes the following arguments: |
| 69 |
\describe{ |
| 70 |
\item{x}{object of class SpatialPoints} |
| 71 |
\item{pch}{default 3; either an integer specifying a symbol or a single character to be used as the default in plotting points} |
| 72 |
\item{axes}{default FALSE; a logical value indicating whether both axes should be drawn } |
| 73 |
\item{add}{default FALSE; add to existing plot} |
| 74 |
\item{xlim}{default NULL; the x limits (x1, x2) of the plot} |
| 75 |
\item{ylim}{default NULL; the y limits of the plot} |
| 76 |
\item{...}{passed through} |
| 77 |
\item{setParUsrBB}{default FALSE; set the \code{par} \dQuote{usr} bounding box, see note in \link{Spatial-class}} |
| 78 |
\item{cex}{default 1; numerical value giving the amount by which plotting text and symbols should be magnified relative to the default} |
| 79 |
\item{col}{default 1; default plotting color} |
| 80 |
\item{lwd}{default 1; line width} |
| 81 |
\item{bg}{default 1; colour to be used for the background of the device region} |
| 82 |
} |
| 83 |
} |
| 84 |
|
| 85 |
|
| 86 |
\author{ Edzer Pebesma, \email{[email protected]} } |
| 87 |
|
| 88 |
\seealso{ |
| 89 |
\code{\link{SpatialPointsDataFrame-class}} |
| 90 |
} |
| 91 |
\examples{ |
| 92 |
x = c(1,2,3,4,5) |
| 93 |
y = c(3,2,5,1,4) |
| 94 |
S <- SpatialPoints(cbind(x,y)) |
| 95 |
S <- SpatialPoints(list(x,y)) |
| 96 |
S <- SpatialPoints(data.frame(x,y)) |
| 97 |
S |
| 98 |
plot(S) |
| 99 |
} |
| 100 |
\keyword{classes} |