This interactive allows you to see how the spectrum of a star is affected by the presense of another object orbiting it, causing the star to move, and therefore for its lines to shift in wavelength.
This first figure show the spectrum of a hydrogen cloud in space versus the labratory spectrum of hydrogen gas. The slider on the right hand side lets you adjust the hydrogen cloud's radial veleocity, that is, its speed directly towards, or away from, us.
The following interactive let's you simulate the expected spectrum from