This function makes the assumption that the dates in BEAST are in units of years. enddate, from and to should all be date objects or Strings in the format "yyyy-mm-dd"
1 2 | gridSkylineDates(skyline, origin, enddate, from, to = NA,
intervals = "weeks", reverse = FALSE)
|
skyline |
The skyline matrix (rows = mcmc generations, columns = skyline variables) |
origin |
The origin of the skyline, for each row in the skyline |
enddate |
End date of the skyline (most recent sample in the tree). |
from |
Start of gridded skyline |
to |
End of gridded skyline |
intervals |
Number of intervals between from and to, or 'weeks' or 'months' |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.