vernissage 0.1.0
First version, gathering the preprocessing and visualisation helpers of the analysis scripts (00_common.R, 01_preprocessing.R, 02_distribution.R, 03_descriptive.R, 04_longitudinal.R, 07_transform_outliers.R and 09_radar_plot.R). The limit-of-detection and cut-off functions are in the companion package lodestar; the modelling functions are kept for a separate package; the clustering functions are not included.
New features
-
describe_cohort(): overview table of a cohort (type, N, missing values, summaries overall and by group, group test, text histogram), replacingtable1(), which depended on functions absent from the scripts (bilille_gt_theme(),.is_typst()). - Column arguments accept character vectors, bare names and tidyselect helpers.
- New helpers from repeated code:
visit_root(),visit_swap(),gt_sig_colors()(replaces the constantGT_SIG_COLORS),pal_okabe_ito()(replaces the objectokabe_ito). -
pal_levels()also accepts a palette name ("okabe",hcl.pals(),palette.pals(), RColorBrewer) or a function. -
outlier_flag_mad()andoutlier_flag_iqr()are exported;outlier_flag_iqr(method = "hinges")reproduces the formeroutliers_table()(Tukey’s hinges ofboxplot.stats()).
Renamed functions
The former names still work (soft deprecation, see ?vernissage-deprecated).
Bug fixes and behaviour changes
-
transform_choose()(formerchoose_transformation()): failed when none of the preferred methods had been computed (e.g. log impossible with values <= 0); the best W is then used. A variable without any Shapiro W keeps its first method with an explicit reason instead of disappearing. -
plot_radar(): its localfmt_p()and%||%masked the package ones; the label format (p=0.012) is kept in a private helper. Colours come frompal_levels(): with more groups than colours, the palette is now interpolated instead of recycled. Withseed, the random state of the session is restored after the call. -
plot_distribution(): the identifier of themetadatajoin no longer defaults to the cohort-specific"SampleName":id_colis required withmetadata. -
visit_map_suffix():selectis now required (former default"^MRI_", kept by the deprecatedvisit_suffix_map()). -
label_expand(): the format of categorised variables is an argument (bin_format,bin_format_root) instead of the global optionsfairpark.bin_label/fairpark.bin_label_root(still read by the deprecatedexpand_labels()). - The seed of jitters and subsamples is an argument (
seed = 1) instead of the global optionanalysis.seed. -
read_cohort_csv()andpath_resolve_nfc(): their documentation was merged in the scripts; each function now has its own. - Skewness and kurtosis are computed internally (same moment estimators as
e1071::skewness(type = 1)/kurtosis(type = 1)), which removes the dependency on e1071. - Every non-ASCII character of the code is written with
\uescapes, as required byR CMD check.
