## S3 method for class 'phylo':
plot(x, show.node.label = FALSE, edge.color = NULL,
edge.width = NULL, font = 3, adj = 0, srt = 0,
no.margin = FALSE, label.offset = NULL,
x.lim = NULL, ...)
"phylo"
."FALSE"
, i.e. the labels
are not shown).edge
of phy
. If
fewer colours are given than the length oedge
of phy
. If fewer widths are given
than the length of edge
, thTRUE
, the margins are set to
zero and the plot uses all the space of the device (note that this
was the behaviour of plot.phylo
up to version 0.2-1 of `ape'
with no way to modify it by the user, at leNULL
, this is computed with respect to various parameters
such as the string lengths of the labels.NULL
,
this is computed with respect to various parameters such as the
string lengths of the labels and the branch lengths.plot()
.no.margin = TRUE
, the margins are
set to zero and are not restored after plotting the tree, so that the
user can access the coordinate system of the plot.
If the arguments label.offset
and x.lim
are not
specified by the user, they are determined roughly by the
function. This may not always give a nice result: the user may check
these values with (invisibly) returned list (see ``Value:'').read.tree
, add.scale.bar
,
plot
for the basic plotting function in R### An extract from Sibley and Ahlquist (1990)
cat("(((Strix aluco:4.2,Asio otus:4.2):3.1,",
"Athene noctua:7.3):6.3,Tyto alba:13.5);",
file = "ex.tre", sep = "")
tree.owls <- read.tree("ex.tre")
plot(tree.owls)
unlink("ex.tre") # delete the file "ex.tre"
Run the code above in your browser using DataLab