Plot baseline or pre-training measures.

plot_baseline(
  x,
  response,
  conf,
  stats,
  sex = c("Female", "Male"),
  age = c("6M", "18M"),
  y_position = NULL,
  step_increase = 0.08
)

Arguments

x

a data.frame with columns "sex", "age", "group", and a column specified by response.

response

character; the name of a column in x to plot.

conf

a data.frame with confidence interval data.

stats

optional data.frame with results of statistical analyses filtered to the response of interest.

sex

character; the sex of the samples to plot: "Female" or "Male".

age

character; the age of the samples to plot: "6M" or "18M".

y_position

numeric; manually specify starting y position of p-value brackets.

step_increase

numeric; increase in fraction of total height for every additional comparison to minimize overlap.