Description Usage Arguments Value Author(s) References Examples
This function is used for fast investigation of matrix objects; standard visualization choices are made automatically; fast and easy-to-use but does not necessarily provide optimal visualization.
1 2 3 4 5 6 |
mat |
matrix |
type |
String. Specifies visualization type. Options: "oneway" (color scale ranges from white to dark red; the color can be changed if needed); "twoway" (color scale ranges from dark blue through white to dark red; colors can be changed if needed) |
midpoint |
middle point for the color plot: smaller values are shown with blue, larger are shown with red in type = "twoway" |
palette |
Optional. Color palette. |
colors |
Optional. Colors. |
col.breaks |
breakpoints for the color palette |
interval |
interval for palette color switches |
plot.axes |
String. Indicates whether to plot x-axis ("x"), y-axis ("y"), or both ("both"). |
row.tick |
interval for plotting row axis texts |
col.tick |
interval for plotting column axis texts |
cex.xlab |
use this to specify distinct font size for the x axis |
cex.ylab |
use this to specify distinct font size for the y axis |
xlab |
optional x axis labels |
ylab |
optional y axis labels |
limit.trunc |
color scale limit breakpoint |
mar |
image margins |
... |
optional parameters to be passed to function 'image', see help(image) for further details |
A list with the color palette (colors), color breakpoints (breaks), and palette function (palette.function)
Leo Lahti sorvi-commits@lists.r-forge.r-project.org
See citation("sorvi")
1 | # mat <- rbind(c(1,2,3,4,5), c(1, 3, 1), c(4,2,2)); PlotMatrix(mat, "twoway", midpoint = 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.