I am reading thermodynamics and I bumped into the following equation:
$$ \left( \frac{\partial \ln{K}}{\partial P}\right)_T = -\frac{Δ_\text{r}V^{\circ}}{RT} $$
Why is it valid to differentiate with respect to pressure when the equilibrium constant is function of temperature only? I mean $Δ_\text{r}G^{\circ} = f(T)$.