Generic Lasagna Function
1 2 3 4 |
X |
a matrix: each row a subject, each column a time/location across subjects; preferably rownames are the ids. |
col |
colors. See "Escaping RGB Land" and the vignette for the colorspace package for followable advice on colors. |
xaxis |
Use best guess x-axis if |
yaxis |
Use best guess y-axis if |
main |
as in plot(), the text of the title. Defaults to "(A) Initial Lasagna Plot" |
main.adj |
the value for 'adj' in title(). Defaults to 0, which is left-aligned. |
xlab |
Label for x-axis |
ylab |
Label for y-axis |
cex.axis |
the cex.axis value if 'axes' is FALSE. |
gridlines |
(logical) Add gridlines to the plot. Useful if image is not too big. |
legend |
(logical) defaults to FALSE. TRUE invokes image.plot() from fields package instead of image() and thus displays a legend. |
... |
Additional stuff to be passed to |
axes |
(logical) TRUE invokes the default axes from image().
FALSE invokes best guess, and better control using |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.