| h_g_ipp | R Documentation | 
Function that generates a simple line plot displaying parameter trends over time.
h_g_ipp(
  df,
  xvar,
  yvar,
  xlab,
  ylab,
  id_var,
  title = "Individual Patient Plots",
  subtitle = "",
  caption = NULL,
  add_baseline_hline = FALSE,
  yvar_baseline = "BASE",
  ggtheme = nestcolor::theme_nest(),
  col = NULL
)
| df | ( | 
| xvar | ( | 
| yvar | ( | 
| xlab | ( | 
| ylab | ( | 
| id_var | ( | 
| title | ( | 
| subtitle | ( | 
| caption | ( | 
| add_baseline_hline | ( | 
| yvar_baseline | ( | 
| ggtheme | ( | 
| col | ( | 
A ggplot line plot.
g_ipp() which uses this function.
library(dplyr)
# Select a small sample of data to plot.
adlb <- tern_ex_adlb %>%
  filter(PARAMCD == "ALT", !(AVISIT %in% c("SCREENING", "BASELINE"))) %>%
  slice(1:36)
p <- h_g_ipp(
  df = adlb,
  xvar = "AVISIT",
  yvar = "AVAL",
  xlab = "Visit",
  id_var = "USUBJID",
  ylab = "SGOT/ALT (U/L)",
  add_baseline_hline = TRUE
)
p
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.