fixedcolimage: Categorical map drawing tool with set colour scheme

Description Usage Arguments Details Value Note Author(s) Examples

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

1

Arguments

BE

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

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.

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.

Note

The original function, imaks, did not force a common colour scheme across multiple images. This version assigns specific colours to integer values and maintains class–colour consistency across multiple categorical images. Images can be assigned titles with an attribute called cim that will be placed at the top of the image during plotting.

Author(s)

Tarmo K. Remmel, modified from Sandor Kabos

Examples

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


Search within the hdeco package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.