
Last chance! 50% off unlimited learning
Sale ends in
add.scale.bar(x, y, length = NULL, ask = FALSE,
lwd = 1, lcol = "black", ...)
x
and y
must
be specified (if only one is given it is ignored). The further arguments (...
) are used to format the text. They
may be font
, cex
, col
, and so on (see examples
below, and the help page on text
).
The function locator
may be used to
determine the x
and y
arguments.
plot.phylo
, axisPhylo
,
locator
tr <- rtree(10)
layout(matrix(1:2, 2, 1))
plot(tr)
add.scale.bar()
plot(tr)
add.scale.bar(cex = 0.7, font = 2, col = "red")
layout(matrix(1))
Run the code above in your browser using DataLab