[Tex/LaTex] Need help in beamer mind maps

beamermindmaps

Can anyone help me fit my mind map in beamer?

EDIT:

I have these codes for the figure, but how I would like to fit the figure in beamer.

\documentclass{beamer}

\usepackage{tikz}
\usetikzlibrary{mindmap,trees}
\usepackage{verbatim}

\begin{document}
\pagestyle{empty}

\begin{comment}
:Title: Computer science mindmap
:Tags: Manual, Mindmap

Version 1.09 of PGF/TikZ added a library for drawing mindmaps. Here's an example
from the manual. 

| Author: Till Tantau
| Source: The PGF/TikZ manual

\end{comment}
\begin{tikzpicture}
  \path[mindmap,concept color=black,text=white]
    node[concept] {Unit Root Tests}
    [clockwise from=15]
    child[concept color=green!50!black] {
      node[concept] {Granger Causality (TY p.)}
      [clockwise from=90]
      child { node[concept] {Full Sample}}
      child { node[concept] {Pre and Post Sample}}
    }  
    child[concept color=blue] {
      node[concept] {Cointegration Test}
      [clockwise from=-30]
      child { node[concept] {Full Sample} }
      child { node[concept] {Pre and Post Sample} }
    }
    child[concept color=red] { node[concept] {Break Point Tests} [clockwise from=-90] 
        child { node[concept] {ZA and PPU Tests}}}
    child[concept color=orange] { node[concept] {Classical Tests} [clockwise from=90] 
        child { node[concept] {ADF, PP, and KPSS Tests}}};
\end{tikzpicture}
\end{document}

It looks like this

enter image description here

Best Answer

There are many different ways to shrink a tikzpicture to fit inside a beamer frame, see, e.g., Scaling a tikzpicture for a Beamer slide.

One possibility using adjustbox:

\documentclass{beamer}

\usepackage{tikz}
\usetikzlibrary{mindmap,trees}
\usepackage{verbatim}
\usepackage{adjustbox}

\begin{document}

\begin{frame}
\begin{adjustbox}{max totalsize={.9\textwidth}{.7\textheight},center}
\begin{tikzpicture}
  \path[mindmap,concept color=black,text=white]
    node[concept] {Unit Root Tests}
    [clockwise from=15]
    child[concept color=green!50!black] {
      node[concept] {Granger Causality (TY p.)}
      [clockwise from=90]
      child { node[concept] {Full Sample}}
      child { node[concept] {Pre and Post Sample}}
    }  
    child[concept color=blue] {
      node[concept] {Cointegration Test}
      [clockwise from=-30]
      child { node[concept] {Full Sample} }
      child { node[concept] {Pre and Post Sample} }
    }
    child[concept color=red] { node[concept] {Break Point Tests} [clockwise from=-90] 
        child { node[concept] {ZA and PPU Tests}}}
    child[concept color=orange] { node[concept] {Classical Tests} [clockwise from=90] 
        child { node[concept] {ADF, PP, and KPSS Tests}}};
\end{tikzpicture}
\end{adjustbox}
\end{frame}

\end{document}

enter image description here

Related Question