makeplot: Make plot to visualize RNA age

Description Usage Arguments Value Examples

View source: R/makeplot.R

Description

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

Usage

1
2
3
4
5
6
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

1
2
3
4
5
6
7
8
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)

reese3928/RNAAgeCalc documentation built on Sept. 25, 2020, 1:01 a.m.