I was asked whether a closed unit ball is a retract of the euclidean space $\mathbb R^2$. I think the answer is yes and the retraction might be defined as follows: for all the points in $\mathbb R^2$ join them with the origin by a straight line, then wherever it will cut the ball first that would be the image of that point under the function.
This is just an idea but I want a rigorous proof. Can somebody tell me? Any other function is also welcome.