textureplot(x, ..., main, add=FALSE, clipwin=NULL, do.plot = TRUE, border=NULL, col = NULL, lwd = NULL, lty = NULL, spacing = NULL, textures=1:8, legend=TRUE, leg.side=c("right", "left", "bottom", "top"), legsep=0.1, legwid=0.2)add.texture.
add=TRUE) or to initialise a new plot
(add=FALSE).
"owin").
Only this subset of the image will be displayed.
border=NULL) means to use par("fg").
Use border=NA to omit borders.
spacing parameter
for the textures.
"texturemap") or a vector of integer codes
(to be interpreted by add.texture).
"texturemap")
associating a texture with each level of the factor.
x is a tessellation, then each tile of the tessellation is
plotted and filled with a texture using add.texture. If x is a factor-valued pixel image, then
for each level of the factor, the algorithm finds the region where the image
takes this value, and fills the region with a texture using
add.texture.
im,
plot.im,
add.texture.
nd <- if(interactive()) 128 else 32
Z <- setcov(owin(), dimyx=nd)
Zcut <- cut(Z, 3, labels=c("Lo", "Med", "Hi"))
textureplot(Zcut)
textureplot(dirichlet(runifpoint(6)))
Run the code above in your browser using DataLab