Examples of naked singularity formation in the gravitational collapse of a scalar field