if (FALSE) {
# Generate uncertainty over feline species SDM chronogram.
# Load the data:
data(felid_sdm)
# By default, generates a sample of 100 trees with var = 0.1:
unc <- phylo_generate_uncertainty(felid_sdm$phy)
length(unc)
# Make an LTT plot:
max_age <- max(sapply(unc, ape::branching.times))
ape::ltt.plot(phy = unc[[1]], xlim = c(-max_age, 0), col = "#cce5ff50")
for (i in 2:100) {
ape::ltt.lines(phy = unc[[i]], col = "#cce5ff50")
}
ape::ltt.lines(felid_sdm$phy, col = "red")
title(c("fake uncertainty", "in Felidae SDM chronogram"))
} # end dontrun
Run the code above in your browser using DataLab