plot_cor.ae: (DEPRECATED) Plot an ae object

plot_cor.aeR Documentation

(DEPRECATED) Plot an ae object

Description

This function has been renamed. Please use plot_cor instead.

Usage

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

Arguments

age.est

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

the x axis label, 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.