plot. Plots (sequentially)
the tiles associated with each point in the set being tessellated.## S3 method for class 'tile.list':
plot(x, verbose = FALSE, close = FALSE, pch = 1,
fillcol = getCol(x,warn=warn),col.pts = NULL,
border=NULL, showpoints = TRUE, add = FALSE,
asp = 1, clipp = NULL, xlab = "x", ylab = "y",
main = "", warn = FALSE, ...)tile.list().TRUE the tiles are
plotted one at a time (with a ``Go?'' prompt after each)
so that the process can be watched.TRUE the outer edges of
of the tiles (i.e. the edges which are contained in the enclosing
rectangle) are drawn. Otherwise tiles on the periphery of the
tessellation are left ``open''.showpoints is FALSE.col2rgb().
The $i$-th entry indicates with which colour to fill
the $i$-th tile. Note that an fillcol whose
entries can be interpreted as colours by col2rgb().
The $i$-th entry indicates with which colour to plot the
$i$-th point. This argument will be rfillcol are black, in which
case it defaults to white. If length(border) > 1 thTRUE the points of
the pattern which was tesselated are plotted.NA. Set this argument equal to NA to allow the data
to determine the aspect ratio and hence to make the plot occupy the
complete plotting region in both x and x-axis (used only if add is FALSE).y-axis (used only if add is FALSE).add is FALSE).getCol().
Should a warning be issued if the z components of the entries
of x cannot all be interpreted as colours. See Details.plot function.deldir, i.e. 1.1-0. The argumentclipwinhas been re-namedclipp(polyclip.
Thespatstatpackage is no longer used. The argumentuse.gpclibhas been eliminated, sincegpclib(which
used to be called upon byspatstathas been superceded bypolyclipwhich has an unrestrictive license.deldirpackage, the
argumentfillcolto this functionreplacesthe old
argumentpolycol, but behaves somewhat differently.showrectwhich was present in versions
of this function prior to release 0.1-1 has been eliminated.
It was redundant.col.ptsargumentmightbehave somewhat differently from how it behaved in the past.border,clipp, andwarnare new as of release 0.1-1.aspbut rather to leaveaspequal to its default value of1. Any other value distorts
the tesselation and destroys the perpendicular appearance of lines
which are indeed perpendicular. (And conversely can cause lines
which are not perpendicular to appear as if they are.)clippis notNULLandshowpointsisTRUEthen it is possible that some of the pointsshowpoints.clippwere added at
the request of Chris Triggs.aspwas added at the request of Zubin
Dowlaty.deldir(), tile.list()
triang.list() plot.triang.list()set.seed(42)
x <- runif(20)
y <- runif(20)
z <- deldir(x,y,rw=c(0,1,0,1))
w <- tile.list(z)
plot(w)
ccc <- heat.colors(20) # Or topo.colors(20), or terrain.colors(20)
# or cm.colors(20), or rainbow(20).
plot(w,fillcol=ccc,close=TRUE)
if(require(polyclip)) {
CP <- list(x=c(0.49,0.35,0.15,0.20,0.35,0.42,
0.43,0.62,0.46,0.63,0.82,0.79),
y=c(0.78,0.86,0.79,0.54,0.58,0.70,
0.51,0.46,0.31,0.20,0.37,0.54))
plot(w,clipp=CP,showpoints=FALSE,fillcol=topo.colors(20))
}Run the code above in your browser using DataLab