#' @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()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.