plot_ba | R Documentation |
Plot association of biological aging measures with chronological age.
plot_ba(data, agevar, label)
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. |
Plot association of biological aging measures with chronological age.
Chronological age and gender variables need to be named "age" and "gender".
#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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.