lasagna: Lasagna Function

Description Usage Arguments

Description

Generic Lasagna Function

Usage

1
2
3
4
lasagna(X, col = rainbow_hcl(length(unique(c(X)))), image.axes = FALSE,
  xaxis = TRUE, yaxis = TRUE, main = "(A)  Initial Lasagna Plot",
  main.adj = 0, xlab = NULL, ylab = NULL, cex.axis = 1.75,
  gridlines = FALSE, legend = FALSE, ...)

Arguments

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 image.axis = FALSE

yaxis

Use best guess y-axis if image.axis = FALSE

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 image

axes

(logical) TRUE invokes the default axes from image(). FALSE invokes best guess, and better control using xaxis/yaxis.


swihart/lasagnar documentation built on May 30, 2019, 9:39 p.m.