Skip to contents

Plot DNAm age estimation vs chronological age.

Usage

plotDNAmAge(x, y, tit = "Horvath's method", clock = "chronological", ...)

Arguments

x

DNAm age estimation

y

Chronological age

tit

Plot title. Default is "Horvath's method".

clock

Type of clock 'chronological' or 'GA'. Default is 'chronological'.

...

Other plot parameters for ggplot

Value

Plot with estimated DNAmAge

Examples

MethylationData <- read_csv(file.path(path, "MethylationDataExample55.csv"))
#> Error in read_csv(file.path(path, "MethylationDataExample55.csv")): could not find function "read_csv"
age.example55 <- DNAmAge(MethylationData)
#> Error in DNAmAge(MethylationData): object 'MethylationData' not found
plotDNAmAge(age.example55$Horvath, age)
#> Error in data.frame(x = x, y = y): object 'age.example55' not found