Variable stars in the Hertzsprung-Russell diagram