Learn R Programming

LS2Wstat (version 2.1-5)

plotmtx: Image manipulation

Description

A function which rearranges image content for nice plotting.

Usage

plotmtx(m)

Value

m.out

The manipulated image corresponding to the input image.

Arguments

m

An image (matrix) for converting so that it can be plotted.

Author

Matt Nunes

Details

Due to the input and plotting output of the R base function image, this function reorders the pixels within an image such that, when used, the image function produces a plot of a image (matrix) "as is".

See Also

Examples

Run this code

Im<-simTexture(n=256,type="NS4",K=1)[[1]]

image(plotmtx(Im))

Run the code above in your browser using DataLab