R/lasagna_plain.R

#' @name lasagna_plain
#' @description Plain Lasagna Plot
#' @title Lasagna Function: no axes, no title, no legend, no nothing
#' @param X a matrix: each row a subject, each column a time/location across subjects
#' @param col colors.  See "Escaping RGB Land" and the vignette for the colorspace package
#' for followable advice on colors.
#' @param axes (logical) axes on or off?
#' @import colorspace
#' @param ... Additional stuff to be passed to \code{image}
#' @export
lasagna_plain <- function(X, col = rainbow_hcl(100), axes = FALSE, ...){
  image(t(X)[,(nrow(X):1)], col = col, axes = axes, ...  )
  box()
}
swihart/lasagnar documentation built on May 30, 2019, 9:39 p.m.