Description Usage Arguments Author(s) See Also Examples
Visualise rooted directional trees, such as the merger trees of halos and galaxies.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | plottree(
tree = NULL,
normalize.mass = TRUE,
sort = TRUE,
spacetype = 3,
straightening = 0,
simplify = FALSE,
style = 3,
circle.height = 0,
root.length = 0.5,
leaf.length = 0.5,
margin = 0.03,
col = rainbow(100, start = 0, end = 5/6),
draw.edges = TRUE,
draw.vertices = FALSE,
draw.box = TRUE,
add = FALSE,
xlim = c(0, 1),
ylim = c(0, 1),
scale = 1,
gamma = 1,
min = 0,
vertex.size = 1,
pdf.filename = NULL,
pdf.size = 5,
forced.x = NULL,
forced.y = NULL,
overlap = 0.001
)
|
tree |
list of vectors of equal lengths (
|
normalize.mass |
logical flag specifying whether the masses should be normalized to the root mass |
sort |
logical flag, specifying if the branches are ordered such that higher mass branches are more central |
spacetype |
integer, specifying how much horizontal space is allocated to each progenitor branch: 1=all progenitors get equal space, 2=proportional to number of leaves, 3=proportional to mass |
straightening |
real between 0 and 1 specifying the maximal mass-ratio up to which it is enforced that the main progenitor is strictly vertically above its descendant. |
simplify |
logical flag. If TRUE, all the vertices, other than the root, with only one progenitor are removed for graphical simplicity. |
style |
integer value to specify the rendering: 1=straight lines, 2=splines, 3=polygon splines with optimal vertex-matching |
circle.height |
real between 0 and 1 specifying the relative vertical height of circles drawn at the nodes (only with style=3) |
root.length |
length of the root branch, extending down from the root halo |
leaf.length |
length of the leaf branches, extending up from the leaves |
margin |
thickness of margin surrounding the plot |
col |
colour of the edges; or a vector of colours if values have been specified in the tree |
draw.edges |
logical flag to turn on/off edges |
draw.vertices |
logical flag to turn on/off vertices |
draw.box |
logical flag to turn on/off a black frame around the box |
add |
logical flag specifying whether the plot should be added to an existing plot |
xlim |
horizontal range of the tree with margin (only needed if add = TRUE) |
ylim |
vertical range of the tree with margin (only needed if add = TRUE) |
scale |
scaling factor to convert masses into line widths |
gamma |
scaling exponent to convert masses into line widths |
min |
minimum linewidth |
vertex.size |
scaling factor of the vertex size |
pdf.filename |
optional file name of a PDF file to be saved |
pdf.size |
optional size of the PDF image |
forced.x |
optional vector allowing the user to enforce the x-positions of individual nodes. Use NAs for automatic values. |
forced.y |
optional vector allowing the user to enforce the y-positions of individual nodes. Use NAs for automatic values. |
overlap |
optional number specifying a small vertical overlap between branches to avoid spurious gaps in graphical outputs |
Danail Obreschkow
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.