Connections between Hilbert function and geometric properties for a finite set of points in P2