makeplot {RNAAgeCalc}R Documentation

Make plot to visualize RNA age

Description

This function makes plots to visualize the relationship between chronological age and RNA age.

Usage

makeplot(
  res,
  main = "RNA age vs chronological age",
  xlab = "chronological age",
  ylab = "RNA Age"
)

Arguments

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

Value

the plot which shows RNA age vs chronological age

Examples

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)

[Package RNAAgeCalc version 1.4.0 Index]