library(BAMMtools)
data(whales, events.whales)
ed <- getEventData(whales, events.whales, burnin=0.1, nsamples=500)
x <- getCohortMatrix(ed)
cohorts(x, ed)
cohorts(x, ed, col=richColors(64))
cohorts(x, ed, ofs=0.05, col=richColors(64))
cohorts(x, ed, pal="temperature", col=richColors(64))
# gray scale
cohorts(x, ed, col=gray(seq(0.2,0.9,length.out=128)), use.plot.bammdata=FALSE)Run the code above in your browser using DataLab