An astronomer analyzes the absorption spectra of four distant galaxies, G1G_1G1, G2G_2G2, G3G_3G3, and G4G_4G4, and compares them to a stationary reference spectrum measured in a laboratory on Earth.

Explain, using the diagram, which of the four galaxies is closest to Earth.