I'm starting to believe that tikz just wasn't meant for me...
how was I able to get this wrong:
\documentclass[a4paper,10pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows,positioning,calc,trees,mindmap,backgrounds,shadows}
\begin{document}
\begin{tikzpicture}
\path[mindmap,concept,concept color=red] (0,0) node (languages) {Languages} [clockwise from=90]
child { node {Markdown} }
child[ sibling angle=110, level distance=8cm] { node {R} [clockwise from=130]
child[ level distance = 4cm] { node {control structures (if, for, \mbox{while, repeat,} \mbox{next, break)}} }
child[ sibling angle = 90, level distance=6cm] { node {data types} [clockwise from=110]
child { node {vectors} }
child { node {lists} }
child { node {matrices} }
child { node {data frames} }
child { node {factors} }
child { node {dates} }
child { node {time} }
child { node {data.table} }
child { node {missing values} }
}
child[ sibling angle = 20] { node {functions} }
}
child[sibling angle=130] { node {RMarkdown} }
;
\end{tikzpicture}
\end{document}
How come "functions" is not 20 degrees from "data types"? How does sibling angle work? (reading the manual was not helping)
What does not work
Does not work 1
Mark Wibrow's answer is great... or would be if working for me. Before getting into details of his functions, I should share an even more basic example that does not work for me:
\documentclass[tikz,border=5]{standalone}
\usetikzlibrary{trees,mindmap}
\begin{document}
\begin{tikzpicture}[mindmap, concept color=blue!20, every child node/.style={concept}]
\node[concept] (languages) {O} [clockwise from=90, sibling angle=90]
child { node {A} }
child { node {B} }
child { node {C}
child { node {C1} }
child { node {C1} }
child { node {C1} }
}
child { node {D} };
\end{tikzpicture}
\end{document}
Does not work 2 - Strange result changes
Having small mindmap instead of mindmap looks suspiciously like Mark Wibrow's result (though this may be by chance):
Does not work 3 - Mark Wibrow's code
Using Mark Wibrow's last code brings the results shown by him, but if I change his [clockwise from=0, sibling angle=45] to [clockwise from=0, sibling angle=10] the result does not change for the C1-nodes.
What would be best
After playing around a lot I think what would be best, would be something like Mark Wibrow's angle list, but with not with absolute values, but that the list contains the angles from each node to the previous node. For example instead of (for seven nodes) [grow cyclic list={120,70,40,5,-30,-80,-100}] to have [grow cyclic list={120,-50,-30,-35,-35,-50,-20}].



sibling anglein the first place? – Make42 Dec 03 '15 at 00:07clockwise fromkey, I think. But Mark Wibrow has a much better solution (and an explanation). – cfr Dec 03 '15 at 14:03sibling anglebefore the child nodes doesn't work in this case because thesmall mindmapstyle installs alevel 2 conceptstyle which overrides thesibling angle. – Mark Wibrow Dec 07 '15 at 13:04mindmap,small mindmapandlarge mindmapall install different variants of the level concept styles fromlevel 1 concepttolevel 4 concept, with different fonts, sibling angles and level distances. The manual explains how to changes these. My updated answer below provides a new growth key which enables the specification of relative angles between siblings. – Mark Wibrow Dec 07 '15 at 14:51sibling anglegets overridden fromsmall mindmap. From your last answer I take it that it also gets overridden frommindmap- so what is it good for if it gets overridden all the time? How do I use it without getting overridden? – Make42 Dec 07 '15 at 15:48tikzlibrarymindmap.code.texin the PGF distribution. All the style settings are at the end of the file (although it uses the old-fashioned\tikzstylecommand rather than\tikzset). Thesmall,largeandhugemindmap styles all inherit from themindmapstyle. – Mark Wibrow Dec 07 '15 at 18:02level 2 concept/.append style={sibling angle=45}does the job afterrall. It would be pretty neat though to have a style that does this in one go, sort ofthis sibling=45. Do you know how to do this? – Make42 Dec 08 '15 at 13:25