Effects of high pressure on magnetic transitions in heavy rare earth metals