Learn R Programming

PatternClass (version 2.0.1)

imaks: Draws a matrix in the proper orientation, as it it were a raster landscape.

Description

A simple drawing function for matrices that are actually representing raster landcape maps. This function also controls the use of colour for nominal maps. This is a generic function for drawing any raster image that should not be drawn as a matrix (where the origin is not at the lower-left corner, but rather the upper-left corner. This function draws a matrix as a map using the proper positioning of the origin and gridded values.

Usage

imaks(BE = data$demoimage1, numcol = NULL, LENG = 4, colour = FALSE)

Arguments

BE

The input landscape map as a matrix object.

numcol

A numeric value indicating the number of total colours on the map.

LENG

An argument that is depreciating. Do not adjust this value.

colour

Should a special colour scheme be applied (TRUE) or not (FALSE)

Value

The result is a graphic plot of a raster landscape as read from a matrix representation.

Details

In a future release, this function may become obsolete as we migrate to using the raster library and raster objects.

References

No references currently.

See Also

Currently none.

Examples

Run this code
# NOT RUN {
data(demoimage1)
imaks(BE = data$demoimage1, numcol = NULL, LENG = 4, colour = FALSE) 
# }

Run the code above in your browser using DataLab