Description Usage Arguments Details Value Note Author(s) Examples
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.
1 | fixedcolimage(BE = checker(8))
|
BE |
Matrix: this is the input image that may or may not have an attribute cim that contains the title text. |
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.
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.
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.
Tarmo K. Remmel, modified from Sandor Kabos
1 2 3 | test <- checker(8)
attr(test, "cim") <- "Checker 8"
fixedcolimage(test)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.