Pressure versus magnetic-field tuning of a magnetic quantum phase transition