Transforms evonet objects into dataframes that can be passed to ggplot2
Usage
# S3 method for class 'evonet'
fortify(
model,
data,
layout = "rectangular",
ladderize = TRUE,
right = FALSE,
branch.length = "branch.length",
mrsd = NULL,
as.Date = FALSE,
yscale = "none",
root.position = 0,
...
)
Arguments
- model
evonet object to convert to data frame
- data
original data
- layout
Currently only 'rectangular' layout is supported
- ladderize
if TRUE it reorganizes the backbone tree to get an laddered structure
- right
specifies whether the smallest clade should be on the right or left
- branch.length
specifies branch length attribute
- mrsd
specifies mrsd attribute
- as.Date
specifies as.Date attribute
- yscale
specifies y scale attribute
- root.position
specifies root attribute
- ...
other arguments passed to methods