Description Usage Arguments Value Author(s)
Can specify a different col, lty and/or lwd for each line
(defaults are all 1). unique.lines
will work out a
unique combination of col and lty for each row of x (num
rows <= 64)
1 2 3 4 5 6 7 8 9 10 11 12 | plot.matrix(x, bg.col = "lightgrey", main = NULL,
sub = NULL, ticks = c(1, 2, 3, 4), xlab = "",
xlim = c(1, ncol(x)), xlabels = rep("", ncol(x)),
ylab = "", ylim = range(x, na.rm = TRUE),
ylabels = NULL, vablines = NULL,
vabline.col = "darkgrey", vabline.lty = 1,
hablines = NULL, habline.col = "darkgrey",
habline.lty = 1, col = 1, lty = 1, lwd = 1, pch = 1,
type = "l", axes = TRUE, tcl = 0.25, add = FALSE,
auto.log = TRUE, symmetrical = FALSE,
unique.lines = FALSE, lty.cor = FALSE,
legend.pos = "none", ...)
|
x |
a matrix-like object of data, with each row to be plotted in a single line (if type draws lines) |
auto.log |
if the data is in the range [0,1] then it can be converted to -log10. Useful if x contains p-values. |
symmetrical |
If the data in x is centred approx
about 0, then setting to |
unique.lines |
works out a unique combination of line colour and type (col and lty) such that the lines plotted are as unique as possible (ie 8 coloured solid lines, then 8 dotted etc) |
lty.cor |
If x contains records that are correlated, and perhaps anti- correlated, setting to TRUE will work out which lines are anti- correlated, and plot them as dashed lines, with all of the correlated lines drawn as solid lines. |
legend.pos |
see
|
none – used to plot.
Mark Cowley, 29 August 2005
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.