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)"im") whose pixel values
are a factor with at most 8 levels.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.add.texture.im,
plot.im,
add.texture.Z <- cut(setcov(owin()), 3, labels=c("Lo", "Med", "Hi"))
textureplot(Z)Run the code above in your browser using DataLab