I'm using the code
\documentclass{book}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
xmin=-5,
xmax=5,
ymin=-5,
ymax=5,
axis x line=middle,
axis y line=middle,
samples=100,
domain=-5:5,
]
\addplot[thick](x,{(x+2)^(1/3)});
\end{axis}
\end{tikzpicture}
\end{document}
to plot y= (x+2)^{1/3} which gives me this graph:

but it is not complete, because the right graph is:

How can I plot it like the second screenshot?
domain=-2:5. – anderstood Jun 04 '15 at 21:34(x+2)^(1/3)is[-2,\infty)? – Sisabe Jun 04 '15 at 22:00pgfplotdoes not work is, I guess, because it uses the definition x^p=exp(p*ln(x)). Maybe someone can confirm or not that pgfplots works this way. Anyway, that's probably not a coincidence that the graph started at x=2. – anderstood Jun 04 '15 at 22:10