Skip to contents

Transforms treedata objects into data frames that can be passed to ggplot2

Usage

# S3 method for class 'treedata'
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

treedata object to convert to data frame

data

original data

layout

Currently only 'rectangular' layout is supported

ladderize

if TRUE it reorganizes the backbone tree into a ladder-like 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

Value

fortified data frame