lab_spaghetti: A laboratory spaghetti plot

View source: R/04_lab_spaghetti.R

lab_spaghettiR Documentation

A laboratory spaghetti plot

Description

This functions creates a spaghetti plot for each lab parameter

Usage

lab_spaghetti(
  adlb,
  param_filter,
  axis_tick_size = 8,
  x_axis_wrap = 6,
  selected_visit = c("Baseline", "Week 2", "Week 4", "Week 6", "Week 8",
    "End of Treatment")
)

Arguments

adlb

Laboratory dataset

param_filter

Character. The filtration applies on 'PARAM' variable.

axis_tick_size

the size of the axis tick.

x_axis_wrap

wrap long text in the x axis.

selected_visit

Vector of characters. The filtration on 'AVISIT' variable.

Value

A ggplot object


DMC21cent/DMC21cent documentation built on May 14, 2023, 5:53 p.m.