plot.EventLogger | R Documentation |
plot.EventLogger Generic plot method for EventLogger class as an S3 object. Converts the EventLogger object into an ape:phylo S3 object.
## S3 method for class 'EventLogger'
plot(eventlog, transmissions = T, migrations = T, transitions = T, ...)
eventlog: |
R6 object of class EventLogger |
transmissions: |
if TRUE, display transmission events on inner tree plot. |
migrations: |
if TRUE, display migration events on inner tree plot. |
path <- system.file('extdata', 'structSI.yaml', package='twt')
settings <- yaml.load_file(path)
structSI <- Model$new(settings)
run <- sim.outer.tree(structSI)
eventlog <- sim.inner.tree(run)
# orange dots represent migration events
plot(eventlog, transmissions=T, migrations=T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.