Metallicity correlations in galaxies