plot_ba: plot_ba

View source: R/plot_ba.R

plot_baR Documentation

plot_ba

Description

Plot association of biological aging measures with chronological age.

Usage

plot_ba(data, agevar, label)

Arguments

data

A dataset with projected biological aging measures for analysis.

agevar

A character vector indicating the names of the biological aging measures.

label

A character vector indicating the labels of the biological aging measures.

Details

Plot association of biological aging measures with chronological age.

Note

Chronological age and gender variables need to be named "age" and "gender".

Examples

#Plot age vs bioage
f1 = plot_ba(data = data, agevar = c("kdm", "phenoage", "hd"),
             label = c("Modified-KDM\nBiological\nAge",
                       "Modified-Levine\nPhenotypic\nAge",
                       "Homeostatic\nDysregulation"))

f1


dayoonkwon/BioAge documentation built on Oct. 11, 2023, 1:33 a.m.