Thermodynamics of vortices in the plane