I am fairly new TikZ user and I am looking for a way to generate a radial tree similar this:
or this:
So far, I have two methods of doing this:
1) Program it manually - This involves quite a lot of setup and could be a very time consuming project even for my (relatively) small trees of only about dozen+ nodes.
2) Use the Mindmap library - This is the closest library I've found, but after a lot of reading up on the subject, it appears that it would require extensive modification to function as radial tree instead of a mindmap. The lines would have to be changed and the placement of nodes would have to be altered slightly.
Is there a good TikZ library or method for generating radial trees that A) use lines to connect nodes, and B) provide control over the distance of a node from the root i.e. all nodes of a given depth at the same distance from root vs staggering distance of nodes with too many siblings?
Criteria B is not mandatory, but is something that I am strongly hoping for: it would be nice to be able to modify placement of nodes based on number of siblings, but the essential thing is still the creation of the radial tree that doesn't look as silly as a mindmap and provides some control over the placement of nodes.
mindmap
library only uses thetree
library and its functions. There are keys likegrow cyclic
andgrow clockwise
/grow counterclockwise
as well assibling angle
that help here. You can also use the level styles to set certain level distances. Take a look at the examples in the PGF manual, p. 476.