wallaby_data: Wallaby plot data

View source: R/wallaby-data.R

wallaby_dataR Documentation

Wallaby plot data

Description

This function performs data manipulation and path interpolation of the categorized data. This includes additional data components for labeling and shading.

Usage

wallaby_data(
  data,
  subset = "top",
  relation = "one_many",
  time_dependent = FALSE,
  height = 0.6,
  width = 50L,
  total_point = NULL
)

Arguments

data

The categorized data.

subset

A character string specifying the variable used for subsetting the data. The "top" and "bottom" strings can also be used in this argument.

relation

The choice of relationship for the values to display on the plot, either "one_many" or "many_one."

time_dependent

Logical. Should the visualizations be time-dependent? The default is FALSE.

height

The proportion the point takes in the shaded area.

width

The number that controls the runif_max to specify how far apart each point is.

total_point

The number of points the users want for the wallaby plot. The default is NULL, where the number of the point is equal to the original number of points.

Details

The function takes the categorized data and interpolates the path for each observation. Additionally, the label and shading data are created.

Value

An object contained the modified data with additional data components.

References

Recreate - Sankey flow chart. (n.d.). Emil Hvitfeldt. Retrieved April 13, 2023, from https://www.emilhvitfeldt.com/post/2018-03-20-recreate-sankey-flow-chart/


animbook documentation built on June 22, 2024, 7:14 p.m.