hdeco (version 0.4.1)

fixedcolimage: 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

fixedcolimage(BE = checker(8))

Arguments

BE
Matrix: this is the input image that may or may not have an attribute cim that contains the title text.

Value

  • The result is a graphic with specified colour palette. The original palette along with the used colours are listed in the command window for reference.

Details

The palette is currently fixed for 21 colours. If more categorical colours are desired, the source code will need to be modified by the addition of more colours.

Examples

test <- checker(8)
attr(test, "cim") <- "Checker 8"
fixedcolimage(test)