The anthocyanin buildup is a general response to stress and could be caused by a number of things, including phosphorus deficiency, not enough water, not enough oxygen for the roots (too much water), intense light, nitrogen deficiency, cold soil, pathogens, too saline soil, poor root...