Plasticity leaves a phenotypic signature during local adaptation