plotPhylogram.JM | R Documentation |
Custom phytools:::plotPhylogram function to allow vertical space between taxa of a horizontal phylogram
plotPhylogram.JM(
x,
direction = "rightwards",
x_gap = 0,
ylim,
y.label.offset,
fsize = 0.75,
ftype = "off",
lwd = 4,
pts = FALSE,
node.numbers = FALSE,
mar = rep(0, 4),
add = FALSE,
offset = 0,
setEnv = TRUE,
placement = "intermediate",
tips = NULL,
split.vertical = FALSE,
lend = 2,
asp = NA,
plot = TRUE
)
x |
Mapping plot of phytools function (e.g., |
direction |
Horizontal direction of the phylogram. Either |
x_gap |
Numeric horizontal free space at the side of the plot, useful if one wants to contrast two trees. Default is 0 |
ylim |
Classic |
y.label.offset |
Vector of same length than the number of tips of the tree. Needs to specify the offset of each tip (0 if same place, positive values otherwise). |
fsize |
Relative font size for tip labels. |
ftype |
Font type - options are |
lwd |
Line width for plotting |
pts |
Logical value indicating whether or not to plot filled circles at each vertex of the tree, as well as at transition points between mapped states. Default is |
node.numbers |
Logical value indicating whether or not node numbers should be plotted. Default is |
mar |
Vector containing the margins for the plot to be passed to |
add |
Logical value indicating whether or not to add the plotted tree to the current plot ( |
offset |
Offset for the tip labels in character widths. Default is 0 |
setEnv |
Logical value indicating whether or not to set the environment |
placement |
Node placement following Felsenstein (2004; pp. 574-576). Can be |
tips |
Labeled vector containing the vertical position of tips. Normally this will be |
split.vertical |
Split the color of the vertically plotted edges by the state of the daughter edges. Only applies if the edge state changes exactly at a node |
lend |
Line end style. See |
asp |
Aspect ratio. See |
plot |
Logical value indicating whether or not to actually plot the tree. (See equivalent argument in |
See plotSimmap
help page for more details
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.