A Ramsey type theorem in the plane