We study theoretically and numerically the ground state of a gas of 2D abelian anyons in an external trapping potential. We treat anyon statistics in the magnetic gauge picture, perturbatively around the bosonic end. This leads to a mean-field energy functional, whose ground state displays vortex lattices similar to those found in rotating Bose-Einstein condensates. A crucial difference is however that the vortex density is proportional to the underlying matter density of the gas. PACS numbers: 05.30.Pr, 03.75.HhThe eventual unambiguous observation of the elusive exotic particles going under the name of anyons [19,26,28,40] remains one the most exciting prospects of condensed matter physics. Apart from speculative applications [27], much excitement comes from the possibility of observing quasi-particles [3,16,17] who do not fall into the ubiquitous dichotomy between bosons and fermions.