longZight
objects to a format suitable for Lasagna plotsR/recode_long_lasagna.R
recode_long_lasagna.Rd
Note: the data structure created by recode_long_lasagna
can also be used by plot_long_alluvial
for alternative display methods.
recode_long_lasagna(.data, response, sortorder, completecases, ts.args) # S3 method for longZight recode_long_lasagna( .data, response, sortorder = 0, completecases = FALSE, ts.args = TRUE )
.data | A |
---|---|
response | The response variable to be plotted as an alluvial |
sortorder | Integer between 1 and 3. |
completecases | Logical variable to exclude incomplete cases |
ts.args | Logical, control to switch pharsing method for variable options |
A longZightLasagna
object
if (FALSE) { mydata %>% load_long_data(IDind, WAVE) %>% refactor_wave %>% recode_long_lasagna(A5E, sortorder = 2, completecases = TRUE) }