plot_cor: Plot an ae object

plot_corR Documentation

Plot an ae object

Description

Plots the correlation score curves from samples against the reference series.

Usage

plot_cor(
  ae_obj,
  subset = 1:ncol(ae_obj$cors),
  show.prior = F,
  c.lwd = 2,
  bar.size = 1,
  mx.col = "firebrick",
  col.p = "royalblue",
  xlab = NULL,
  ylab = NULL,
  ...
)

Arguments

ae_obj

an ae object, as returned by ae

subset

an index vector of the samples to plot (defaults to all)

show.prior

logical ; if TRUE, shows the input prior(s) on the plot.

c.lwd

line width for the correlation score curve

bar.size

size of the estimate confidence interval bars

mx.col

color of the age estimate bars

col.p

color of the prior bar

xlab, ylab

the x and y axis labels, passed on to plot

...

additional arguments passed on to plot

Examples


requireNamespace('wormRef', quietly = TRUE)

# get some samples to stage
samp <- wormRef::Cel_larval$g[,13:15]

# load interpolated reference
r_larv <- prepare_refdata(ref = 'Cel_larval', datapkg = 'wormRef' , n.inter = 200)

# perform age estimate
ae_test <- ae(samp, r_larv)

# check output
summary(ae_test)
plot(ae_test) # plot all sample estimates
plot_cor(ae_test) # plot individual correlation profiles of samples

# get results
ae_test$age.estimates


LBMC/wormAge documentation built on April 6, 2023, 3:52 a.m.