nodeRect: Plots rectangles on nodes

Description Usage Arguments Value Author(s) Examples

View source: R/nodeRect.R

Description

Plots rectangles of a given length on the nodes of a phylogenetic tree.

Usage

1
nodeRect(start, end = NULL, node, width = 0.05, lty = 1, col = "blue", lwd = 1)

Arguments

start

Where rectangle should start, or (if end = NULL) half the width of the rectangle.

end

Where rectangle should end

node

Optional vector giving the nodes on which rectangles should be plotted

width

Width of rectangle. Default of 0.05

lty

Line type. Default of 1 (solid line). See par for more details.

col

Fill colour. Default of "blue".

lwd

Rectangle outline width. Default of 1.

Value

Plots rectangles on the nodes of the most recently plotted tree.

Author(s)

Samuel Brown <s_d_j_brown@hotmail.com>

Examples

1
2
3
4
5
6
7
8
data(dolomedes)
doloTr <- nj(dist.dna(dolomedes))

doloRect <- runif(35, min = 0.001, max = 0.003)

plot(doloTr)

nodeRect(doloRect, width = 0.2)

spiderDev documentation built on May 2, 2019, 5:23 p.m.