Learn R Programming

refund.shiny (version 1.0)

bakeLasagna: Create side-by-side lasagna plot and density plot

Description

Internal method used in conjunction with makeLasagna() to create side-by-side lasagna plot and distribution plot. The distribution plot gives distribution of sorting covariate.

Usage

bakeLasagna(data, data.long, covariate = NULL)

Arguments

data

Dataset for lasagna plot. Same data used in makeLasagna() function.

data.long

Sorted longform dataset for lasagna plot output by makeLasagna() function.

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

Julia Wrobel julia.wrobel@cuanschutz.edu