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
)

Arguments

.data

A longZight object generated by load_long_data

response

The response variable to be plotted as an alluvial

sortorder

Integer between 1 and 3. 1 for "By (factor) Level" mode, 2 for "By Count" mode and 3 for "By (contiguous) Block" mode.

completecases

Logical variable to exclude incomplete cases

ts.args

Logical, control to switch pharsing method for variable options

Value

A longZightLasagna object

Examples

if (FALSE) { mydata %>% load_long_data(IDind, WAVE) %>% refactor_wave %>% recode_long_lasagna(A5E, sortorder = 2, completecases = TRUE) }