Description Usage Arguments Value Author(s) Examples
This function creates a square matrix with two diagonal crossing color ramps. It can be used to plot contingency maps of two classifications.
1 2 3 4 5 | ColorMatrix(dim = 3,
ul = "burlywood4",
lr = "darkgreen",
ll = "khaki1", ur = "royalblue1",
ctr = "gray87")
|
dim |
number of rows and number of columns of the matrix (only square matrix are possible, i.e. number of rows = number columns) |
ul |
starting color in the upper left corner of the matrix |
lr |
ending color in the lower right corner of the matrix |
ll |
starting color in the lower left corner of the matrix |
ur |
ending color in the upper right corner of the matrix |
ctr |
color in the center of the matrix |
The function returns a square matrix of color names.
Matthias Forkel <matthias.forkel@tu-dresden.de> [aut, cre]
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.