A novel type of neighbour perception elicits reproductive plasticity in an annual plant with a mixed mating system.