Releases: TGuillerme/treats
Releases · TGuillerme/treats
V1.1
treats v1.1 (2024-11-11)
NEW FEATURES
- New function:
link.traits
to link several traits to each other - New S3 function:
drop.tip
andkeep.tip
fromape
now work on"treats"
objects
MINOR IMPROVEMENTS
map.traits
now can directly save multiple mappings in the same object and can be plotted directly to visualise uncertainty.crude.bd.est
now calculates the speciation and extinction rates based on thegeiger
package by default (using the"estimate"
method) or just counts the events per time (using the"count"
method).make.treats
can now directly intakedispRity
objects with trees and data (e.g. for visualisation).plot.treats
now plots singletons nodes in light orange when present (with the option added to the manual as well). Thanks for Rob McDonald for the suggestion.plot.treats
now handles dynamic plot window sizes when plotting multiple trees on top of each other.plot.treats
now automatically plots any detectable discrete characters using the"phylo"
format.- revamped
traits
internal structure for more modularity.
BUG FIXES
- Plotting
col
option is now handled and explained correctly byplot.treats
when complex (i.e. when not equal to the number of elements or the number of element categories). - Plotting
traits
now correctly displays multiple traits with thetrait
argument (thanks to Dominik Kopčak for spotting that one). - Removed bug where some
"founding"
events lead to an error "crossed_edges not found" when cleaning the treats output. discrete.process
now works in n dimensions. Thanks to Caleb Scutt for spotting this one.
v1.0
NEW FEATURES
- Completely reworked
dispRitreats
to now work just like thedispRity
function ontreats
objects. - The package is now released on CRAN!
MINOR IMPROVEMENTS
events
now generates singleton nodes (and associated trait values if needed) at the time of the event before applying the modification.- added
verbose
option totreats
for when using the optionnull.error = integer()
. - printing now works for
treats
outputs withreplicates = <integer>
. drop.things
now works with replicatedtreats
objects (ormultiPhylo
)
BUG FIXES
- Fixed many simulation corner cases (mainly ones for special trees with always only one node, one living and one fossil).
- Fixed printing issues with S3
"treats"
sub-classes
v0.2
treats v0.2 (2023-05-25) CRAN friendly pre-release
BUG FIXES
- Corrected the
BM.process
andOU.process
to now be exact (thanks to Rachel Warnock and Louie Rombaut for spotting that one). - Fixed
bd.params
print display when inputs are numeric.
NEW FEATURES
- New utility function
dispRitreats
to convert"treats"
output as input fordispRity
- New utility function
crude.bd.est
for a crude estimation of speciation and extinction rates from an input tree. - New utility function
map.traits
for mapping a"traits"
onto a tree. - New utility function
transition.matrix
for designing transition matrices for discrete characters. - New
traits
process:discrete.process
to generate discrete characters. - Changed package name from
dads
totreats
- Full polished version of the manual!
treats
has now asave.steps
option to create internal nodes at regular intervals or specified ones and areplicates
option to automatically replicate the simulations.- Added a
make.bd.parms
utility function for sampling from distributions (jointly or not). - Trees can now be generated with birth-death parameters sampled from functions.
- added a list of pre-made
modification
andcondition
for events. traits
can now have a background component that triggers trait generation in the background each time traits are generated.events
are now fully handled and modular.make.events
function for helping to make events.make.modifiers
now has aselect.taxa
argument.make.treats
to create"treats"
objects from a tree and a dataset (e.g. matrix). This can be useful for using the theplot.treats
function on non"treats"
objects."events"
class objects are now implemented and fully functional with themake.events
function and the pre-mademass.extinction
andfounding.event
events.drop.things
to drop fossils or livings species or internal nodes from"treats"
objects.
MINOR IMPROVEMENTS
- Many clarifications and rewording to the manual.
v0.1.5 - early pre-release
dads v0.1.5 (2022-04-01) early pre-release
BUG FIXES
- Corrected the
BM.process
to now be tornorm(n = 1, mean = x0, sd = sqrt(sd^2 * edge.length))
(thanks to Rachel Warnock for spotting that one).
NEW FEATURES
- Added a
make.bd.parms
utility function for sampling from distributions (jointly or not). - Trees can now be generated with birth-death parameters sampled from functions.
- added a list of pre-made
modification
andcondition
for events. events
are now fully handled and modular.make.events
function for helping to make events.make.modifiers
now has aselect.taxa
argument."events"
class objects are now implemented and fully functional with themake.events
function and the pre-mademass.extinction
andfounding.event
events.dads
function first release.make.traits
function first release.make.modifiers
function first release.print
andplot
functions for"dads"
objects.parent.traits
utility function first release.- Manual first release