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