I'm, trying to create an horizontal diagram (like the diagrams you can create with Visio but programatically) in R (to embed it in a LaTeX document) or directly in LaTeX. So far I've been reading about differnt options and I've tried with Tikz, creating nodes and childs...
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[grow = right,sibling distance=10em,
every node/.style = {shape=rectangle, rounded corners, draw, align=center, top color=white, bottom color=blue!20}]]
\node {Formulas}
child { node {single-line} }
child { node {multi-line}
child { node {aligned at}
child { node {relation sign} }
child { node {several places} }
child { node {center} } }
child { node {first left} }
};
\end{tikzpicture}
\end{document}
But I get this,
As you can see, It's not automatically fitted properly. Some things overlap, other are very spread...
How do you suggest to create this kind of diagrams/flowcharts, preferably with arrows. Maybe with the LaTeX package smartdiagram or with R diagrammer or with the package diagram? I'm looking for the simplest one. Smartdiagram seems nice but in the examples don't show hoy to create a horizontal tree or flowchart.
There is also a package called schemata that creates a different kind of diagrams, maybe not so beautiful. Anyway its difficulty is similar.