Will, (if required) recode the data to Lasagna format using recode_long_lasagna and provide a complete ready-to-output plot for iNZight or other purposes.

iz_plot_lasagna(...)

# S3 method for longZightLasagna
iz_plot_lasagna(
  .data,
  response,
  xlab = "Wave",
  title = paste0("Plot of ", response),
  completecases = FALSE,
  ...
)

# S3 method for longZight
iz_plot_lasagna(
  .data,
  response,
  sortorder = 1,
  xlab = "Wave",
  title = paste0("Plot of ", response),
  completecases = FALSE,
  ...
)

Arguments

.data

A longZight object generated by load_long_data

response

The response variable to be plotted as a Lasagna plot

xlab

Optional x-axis label

title

Optional title

completecases

Logical variable to exclude incomplete cases

sortorder

(if .data is a longZight object) the sort order for recode_long_lasagna

Examples

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