While the index of refraction does not affect frequency, it does affect wavelength. The wavelength is the distance between two consecutive peaks or troughs of a wave and is inversely proportional to the frequency. Therefore, as the index of refraction increases, the wavelength decreases and vice versa. This is because the index of refraction is a measure of how much the light is slowed down, so a higher index of refraction means a slower speed of light and a shorter wavelength.
In summary, while the index of refraction does not directly affect frequency, it does affect wavelength, which is inversely proportional to frequency.