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)
"tess"
or something
acceptable to as.tess
) with at most 8 tiles,
or a pixel image (object of class "im"
) whose pixel values
are a
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
.Z <- cut(setcov(owin()), 3, labels=c("Lo", "Med", "Hi"))
textureplot(Z)
textureplot(dirichlet(runifpoint(6)))
Run the code above in your browser using DataLab