The global production of vegetables and legumes, which are an important part of healthy diets, could be significantly reduced through predicted future changes to the environment, according to new research.