makeplot {RNAAgeCalc} | R Documentation |
This function makes plots to visualize the relationship between chronological age and RNA age.
makeplot( res, main = "RNA age vs chronological age", xlab = "chronological age", ylab = "RNA Age" )
res |
a data frame returned by 'predict_age' function. If the chronological age is not provided when using 'predict_age' function, visulization cannot be made. |
main |
title of the plot |
xlab |
label of x-axis |
ylab |
label of y-axis |
the plot which shows RNA age vs chronological age
data(fpkmExample) fpkm_large = cbind(fpkm, fpkm, fpkm, fpkm) fpkm_large = cbind(fpkm_large, fpkm_large, fpkm_large, fpkm_large) colnames(fpkm_large) = paste0("sample",1:32) chronage = data.frame(sampleid = colnames(fpkm_large), age = 1:32) res = predict_age(exprdata = fpkm_large, exprtype = "FPKM", chronage = chronage) makeplot(res)