Learn R Programming

ShapePattern (version 3.1.0)

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)

Value

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

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)

Author

Sandor Kabos (modified by Tarmo K. Remmel)

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
data(demoimage1)
imaks(BE = data$demoimage1, numcol = NULL, LENG = 4, colour = FALSE) 

Run the code above in your browser using DataLab