View source: R/subsetEventData.R
subsetEventData | R Documentation |
bammdata
objectSubsets a bammdata
object. Returns a bammdata
object after extracting a specified set of samples from the posterior.
subsetEventData(ephy, index)
ephy |
An object of class |
index |
A vector of integers corresponding to samples to be extracted
from the posterior distribution of shift configurations included in
the |
This will result in an error if you attempt to access samples
that do not exist in the ephy
data object. For example, if your
bammdata
object includes 100 samples from a posterior
distribution sampled with BAMM
, you can only attempt to subset
with index values 1:100.
Dan Rabosky
plot.bammdata
, getCohortMatrix
,
image
data(whales, events.whales)
ed <- getEventData(whales, events.whales, nsamples=500)
ed2 <- subsetEventData(ed, index=1)
plot(ed2)
addBAMMshifts(ed2, cex=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.