Environmental factors affect metamorphosis in serveral ways. Abundence of food, cold temperature or insufficient iodine (component of thyroxin hormone) may cause failure of metamorphosis and retention of larval features.
Calcium, magnesium, phosphorus are not found to play any role in metamorphosis in animals.