File: draw.Rd

package info (click to toggle)
r-cran-raster 3.6-31-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 3,300 kB
  • sloc: cpp: 2,367; ansic: 1,572; sh: 13; makefile: 2
file content (34 lines) | stat: -rw-r--r-- 852 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
\name{draw}

\alias{drawPoly}
\alias{drawLine}

\title{ Draw a line or polygon }

\description{
Draw a line or polygon on a plot (map) and save it for later use. After calling the function, start clicking on the map. To finish, right-click and select 'stop'.
}

\usage{
drawPoly(sp=TRUE, col='red', lwd=2, ...)
drawLine(sp=TRUE, col='red', lwd=2, ...)
}

\arguments{
  \item{sp}{logical. If \code{TRUE}, the output will be a sp object (SpatialPolygons or SpatialLines). Otherwise a matrix of coordinates is returned}  
  \item{col}{the color of the lines to be drawn}
  \item{lwd}{the width of the lines to be drawn}
  \item{...}{additional arguments padded to locator}
}
 
\value{
If \code{sp==TRUE} a SpatialPolygons or SpatialLines object; otherwise a matrix of coordinates
}

\seealso{ \code{\link[graphics]{locator}}  }
 
 



\keyword{ spatial }