image_matrix | R Documentation |
image
plotting a data matrix
in the orientation of text displayWrapper around image
to plot a matrix as
it is displayed in R console, i.e. the field dat[1,1]
is at the top left corner. It further allows to plot text
into individual fields and have colored axis tick labels.
image_matrix(
z,
x,
y,
text,
text.col,
text.cex = 1,
axis = 1:2,
axis.cex = 1,
cut = FALSE,
breaks,
axis1.col,
axis1.las = 2,
axis2.col,
axis2.las = 2,
...
)
z |
the numeric data matrix to be plotted |
x |
optional x coordinates, corresponding to columns of z |
y |
optional y coordinates, corresponding to rows of z |
text |
a matrix of characters corresponding to |
text.col |
individual colors for text fields |
text.cex |
relative font size for text fields |
axis |
integer vector, sets whether x-axis (1,3) and/or
y-axis (2,4) are drawn; the column and row names of |
axis.cex |
if axis[1|2].col is provided, this sets the tick label size |
cut |
if TRUE data is cut at min and max of breaks. |
breaks |
breakst to use for color selection. |
axis1.col |
invididual colors for x-axis tick labels, length must
equal the number of columns of |
axis1.las |
parameter |
axis2.col |
invididual colors for y-axis tick labels, length must
equal the number of rows of |
axis2.las |
parameter |
... |
further arguments to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.