image | R Documentation |
Implements a wrapper function to image
for proper plotting of
objects of class matrix
and dist
.
implot(x, xlab = "", ylab = "", axes = FALSE, ticks = 10,
las = 2, ...)
x |
an object of class |
xlab , ylab |
labels for the x and y axis. |
axes |
logical, indicating whether |
ticks |
the number of tick-marks to use. |
las |
the axis style to use (see |
... |
further arguments to |
Plots an object of class matrix
in its original row and column
orientation. This means, in a plot the columns become the x-coordinates
and the reversed rows the y-coordinates.
If x
is of class dist
it is coerced to full-storage
matrix
representation.
Returns the transformed x
invisibly.
Christian Buchta
image
and par
for details.
x <- matrix(sample(c(FALSE, TRUE),100,rep=TRUE),ncol=10,
dimnames=list(1:10,LETTERS[1:10]))
implot(x)
implot(x, col=c("white","black"), axes = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.