| g_ipp | R Documentation | 
Line plot(s) displaying trend in patients' parameter values over time is rendered. Patients' individual baseline values can be added to the plot(s) as reference.
g_ipp(
  df,
  xvar,
  yvar,
  xlab,
  ylab,
  id_var = "USUBJID",
  title = "Individual Patient Plots",
  subtitle = "",
  caption = NULL,
  add_baseline_hline = FALSE,
  yvar_baseline = "BASE",
  ggtheme = nestcolor::theme_nest(),
  plotting_choices = c("all_in_one", "split_by_max_obs", "separate_by_obs"),
  max_obs_per_plot = 4,
  col = NULL
)
| df | ( | 
| xvar | ( | 
| yvar | ( | 
| xlab | ( | 
| ylab | ( | 
| id_var | ( | 
| title | ( | 
| subtitle | ( | 
| caption | ( | 
| add_baseline_hline | ( | 
| yvar_baseline | ( | 
| ggtheme | ( | 
| plotting_choices | ( | 
| max_obs_per_plot | ( | 
| col | ( | 
A ggplot object or a list of ggplot objects.
g_ipp(): Plotting function for individual patient plots which, depending on user
preference, renders a single graphic or compiles a list of graphics that show trends in individual's parameter
values over time.
Relevant helper function h_g_ipp().
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)
plot_list <- g_ipp(
  df = adlb,
  xvar = "AVISIT",
  yvar = "AVAL",
  xlab = "Visit",
  ylab = "SGOT/ALT (U/L)",
  title = "Individual Patient Plots",
  add_baseline_hline = TRUE,
  plotting_choices = "split_by_max_obs",
  max_obs_per_plot = 5
)
plot_list
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.