imshow {MBCbook}R Documentation

Display an image

Description

A simple way of displaying an image, using the image function.

Usage

imshow(x,col=palette(gray(0:255/255)),useRaster = TRUE,...)

Arguments

x

the image to display as a matrix.

col

the color palette to use when displaying the image.

useRaster

logical; if TRUE a bitmap raster is used to plot the image instead of polygons. The grid must be regular in that case, otherwise an error is raised. For the behaviour when this is not specified, see the ‘Details’ section of the image function.

...

additionial arguments to provide to subfunctions.

Value

This function returns nothing.

See Also

image

Examples

Im = diag(16)
imshow(Im)

[Package MBCbook version 0.1.2 Index]