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, ...)
Returns the transformed x
invisibly.
an object of class matrix
or dist
.
labels for the x and y axis.
logical, indicating whether dimnames(x)
should be
drawn on the plot.
the number of tick-marks to use.
the axis style to use (see par
).
further arguments to image
.
Christian Buchta
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.
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)
Run the code above in your browser using DataLab