Ways to change the spontaneity of a reaction
Natural variables of $\Delta G$ are $p$, $T$, and $N_i$.

$p$ = pressure

$T$ = Temperature

$N_i$ = number of particles  (or number of moles)

The derivation showing this is listed on the Wikipedia.