plot_matrix | R Documentation |
Fast investigation of matrix objects; standard visualization choices are made automatically; fast and easy-to-use but does not necessarily provide optimal visualization.
plot_matrix(
mat,
type = "twoway",
midpoint = 0,
palette = NULL,
colors = NULL,
col.breaks = NULL,
interval = 0.1,
plot_axes = "both",
row.tick = 1,
col.tick = 1,
cex.xlab = 0.9,
cex.ylab = 0.9,
xlab = NULL,
ylab = NULL,
limit.trunc = 0,
mar = c(5, 4, 4, 2),
...
)
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 microbiome-admin@googlegroups.com
See citation('microbiome')
mat <- rbind(c(1,2,3,4,5), c(1, 3, 1), c(4,2,2))
plot_matrix(mat, 'twoway', midpoint = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.