Description Usage Arguments Value Examples
Plot a grid of colors given a matrix of numbers
1 2 3 4 | plot_color_grid(M, block.height = 20, block.width = 10, space.X = 3,
space.Y = 10, cex.x = 1, cex.y = 1, border = TRUE,
color_palatte = c("blue", "white", "red"), color_bounds = NA,
num_colors = 50, main = "", xlab = "", ylab = "")
|
M |
matrix of values to plot |
block.height |
element height, default 20 |
block.width |
element width, default 10 |
space.X |
space between elements on horizontal axis, default 3 |
space.Y |
space between elements on vertical axis, default 10 |
cex.x |
cex value for x axis |
cex.y |
cex value for y axis |
border |
boolean, draw a border around grid elements |
color_palatte |
vector of colors c(cold,middle,hot), defaults to c("blue", "white", "red") |
color_bounds |
two element vector with lower and upper limit for color palatte, defaults to c( min(M), max(M) ) |
num_colors |
number of color gradations in palatte, default 50 |
main |
Plot main title, default blank. |
xlab |
Plot x axis label, default blank. |
ylab |
Plot y axis label, default blank. |
M, including possible truncation from color bounds
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.