Learn R Programming

hdeco (version 0.4.1)

imaks: Categorical map drawing tool with set colour scheme

Description

A tool for drawing categorical data (matrices) in their proper orientation and with a set colour palette. This is especially useful for drawing multiple images that requrie identical palettes even though some classes may not exist on all images.

Usage

imaks(BE = demoimage1, ncolours=NULL, LENG=4)

Arguments

BE
Matrix: this is the input image that may or may not have an attribute cim that contains the title text.
ncolours
Integer: the total number of colours in the image. This can be automatically determined if set to NULL.
LENG
integer: used to control labelling.

Value

  • The result is a graphic with title read from attribute 'cim' if it exists.specified colour palette. This function is suitable for use with continuous surfaces.

Examples

Run this code
data(demoimage1)
imaks(demoimage1)

Run the code above in your browser using DataLab