## S3 method for class 'texturemap':
plot(x, \dots, main, xlim = NULL, ylim = NULL,
vertical = FALSE, axis = TRUE,
labelmap = NULL, gap = 0.25,
spacing = NULL, add = FALSE)"texturemap").add.texture or axis.default.vertical=TRUE or a horizontal row
(vertical=FALSE, the default).function which will be applied to the
data values (the inputs of the texture map) before they are
displayed on the plot.add.texture controlling the density
of lines in a texture. Expressed in spatial coordinate units.add=TRUE) or to initialise a new plot
(add=FALSE, the default)."texturemap" represents a texture
map. Such objects are returned from the plotting function
textureplot, and can be created directly by the function
texturemap. This function plot.texturemap is a method for the generic
plot for the class "texturemap". It displays
a sample of each of the textures in the texture map, in a separate
box, annotated by the data value which is mapped to that texture.
The arrangement and position of the boxes is controlled by
the arguments vertical, xlim, ylim and
gap.
texturemap,
textureplot,
add.texture.tm <- texturemap(c("First", "Second", "Third"), 2:4, col=2:4)
plot(tm, vertical=FALSE)
## abbreviate the labels
plot(tm, labelmap=function(x) substr(x, 1, 2))Run the code above in your browser using DataLab