makeLasagna: Pre-process data for lasagna plot

View source: R/makeLasagna.R

makeLasagnaR Documentation

Pre-process data for lasagna plot

Description

Internal method that takes a dataframe of observed data with an outcome matrix and user-selected covariate, sorts outcome by the selected covariate, and assigns heights to each row based on value of the selected covariate. The resulting dataframe is used with bakeLasagna() to create lasagna plot.

Usage

makeLasagna(data, outcome, covariate = NULL)

Arguments

data

Dataset for lasagna plot.

outcome

Matrix of values where each row represents a functional observation.

covariate

User-selected covariate for sorting the rows in the lasagna plot. Defaults to NULL, in which case data is sorted by row number.

Author(s)

Julia Wrobel julia.wrobel@cuanschutz.edu


refund.shiny documentation built on Oct. 11, 2022, 1:05 a.m.