How tall the distribution figure should be drawn
Source:R/compare.R
compare_pmx_distributions_height.RdThe figure gets one panel per endpoint and per baseline covariate, so a study
with five endpoints needs several times the height of a study with one.
fig.height is fixed before a chunk runs and cannot be read off the plot, so
pass this to the chunk option instead of letting every figure inherit one
default and arrive squashed or stranded in white space.
Arguments
- source
Source PMX data.
- roles
Explicit roles from
pmx_roles().- per_row
Inches per row of panels.
- minimum
Inches below which the figure is never drawn, so a single-panel study does not come out as a letterbox.
Examples
data <- pmx_simulated_fixture(20)
roles <- pmx_roles(
id = "ID", time = "TIME", dv = "DV", amt = "AMT", evid = "EVID",
cmt = "CMT", dvid = "DVID", covariates = c("WT", "SEX")
)
compare_pmx_distributions_height(data, roles)
#> [1] 4.8