Plotting function for Spaghetti and Transitional plots

Plotting function for Spaghetti and Transitional plots for longZight objects

plot_long_line(
  .data,
  response,
  subsetvar1 = NULL,
  subsetvar2 = NULL,
  subsetvar2rev = FALSE,
  facetvar = NULL,
  ts.args = TRUE
)

# S3 method for longZight
plot_long_line(
  .data,
  response,
  subsetvar1 = NULL,
  subsetvar2 = NULL,
  subsetvar2rev = FALSE,
  facetvar = NULL,
  ts.args = TRUE
)

Arguments

.data

A longZight object generated by load_long_data

response

The response variable to be plotted by an alluvial

subsetvar1

Name of variable to be used for colouring Spaghetti lines

subsetvar2

Name of variable to be used to bring forward TRUE values and grey out FALSE variables

subsetvar2rev

Logical, reverse logic/processing of subsetvar2

facetvar

Name of variable to be used for faceting

ts.args

Logical control to switch pharsing method for variable options

subsetvar1, subsetvar2 and facetvar default to NULL

Examples

if (FALSE) { mydata %>% load_long_data(id, xp) %>% plot_long_line(ln_wages, ged, hispanic) }