The R Project SVN R

Rev

Rev 27541 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 27541 Rev 27733
Line 38... Line 38...
38
}
38
}
39
\seealso{\code{\link[graphics]{xy.coords}},\code{\link[graphics]{polygon}}}
39
\seealso{\code{\link[graphics]{xy.coords}},\code{\link[graphics]{polygon}}}
40
 
40
 
41
\examples{
41
\examples{
42
require(graphics)
42
require(graphics)
43
X <- matrix(stats::rnorm(2000), ncol=2)
43
X <- matrix(rnorm(2000), ncol=2)
44
plot(X, cex=0.5)
44
plot(X, cex=0.5)
45
hpts <- chull(X)
45
hpts <- chull(X)
46
hpts <- c(hpts, hpts[1])
46
hpts <- c(hpts, hpts[1])
47
lines(X[hpts, ])
47
lines(X[hpts, ])
48
}
48
}