image: Matrix Image Plots

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Implements a wrapper function to image for proper plotting of objects of class matrix and dist.

Usage

1
2
implot(x, xlab = "", ylab = "", axes = FALSE, ticks = 10,
       las = 2, ...)

Arguments

x

an object of class matrix or dist.

xlab, ylab

labels for the x and y axis.

axes

logical, indicating whether dimnames(x) should be drawn on the plot.

ticks

the number of tick-marks to use.

las

the axis style to use (see par).

...

further arguments to image.

Details

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.

Value

Returns the transformed x invisibly.

Author(s)

Christian Buchta

See Also

image and par for details.

Examples

1
2
3
4
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)

Example output

Loading required package: grid
Loading required package: proxy

Attaching package: 'proxy'

The following objects are masked from 'package:stats':

    as.dist, dist

The following object is masked from 'package:base':

    as.matrix

cba documentation built on May 2, 2019, 1:39 p.m.

Related to image in cba...