Plot a triangulation object

Share:

Description

plots the triangulation "x"

Usage

1
2
3
## S3 method for class 'tri'
plot(x, add=FALSE,xlim=range(x$x),ylim=range(x$y), 
  do.points=TRUE, do.labels = FALSE, isometric=FALSE,...)

Arguments

x

object of class "tri"

add

logical, if TRUE, add to a current plot.

do.points

logical, indicates if points should be plotted.

do.labels

logical, indicates if points should be labelled

xlim,ylim

x/y ranges for plot

isometric

generate an isometric plot (default FALSE)

...

additional plot parameters

Value

None

Author(s)

A. Gebhardt

References

R. J. Renka (1996). Algorithm 751: TRIPACK: a constrained two-dimensional Delaunay triangulation package. ACM Transactions on Mathematical Software. 22, 1-8.

See Also

tri, print.tri, summary.tri

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# random points
plot(tri.mesh(rpois(100,lambda=20),rpois(100,lambda=20),duplicate="remove"))
# use a part of the quakes data set:
data(quakes)
quakes.part<-quakes[(quakes[,1]<=-10.78 & quakes[,1]>=-19.4 &
                     quakes[,2]<=182.29 & quakes[,2]>=165.77),]
quakes.tri<-tri.mesh(quakes.part$lon, quakes.part$lat, duplicate="remove")
plot(quakes.tri)
# use the whole quakes data set 
# (will not work with standard memory settings, hence commented out)
#plot(tri.mesh(quakes$lon, quakes$lat, duplicate="remove"), do.points=F) 

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.