It is well-known that if $S$ is a graded ring, and $f$ is a homogeneous element of positive degree, then there is a bijection between the homogeneous prime ideals of the localization $S_f$ and the prime ideals of $S_{(f)}$, the subring of $S_f$ comprising the homogeneous elements of degree $0$.
This is proposition II.2.5b in Hartshorne, exercise 5.5B in Ravi Vakil's notes $[1]$ (p. $130$ of the February $24$, $2012$ version), and proposition 8.1.21 of Akhil Mathew's notes $[2]$ (p. $136$). Unfortunately I cannot follow any of those proofs to my own satisfaction, perhaps because I'm not well-versed in commutative algebra.
The crux of the proof appears to be to show that, given a homogeneous prime ideal $\mathfrak{p}$ of $S$ not containing $f$, the construction used to obtain a prime ideal $\Psi (\mathfrak{q})$ of $S$ from a prime ideal $\mathfrak{q}$ of $S_{(f)}$ will recover $\mathfrak{p}$ when $\mathfrak{q} = S_f \mathfrak{p} \cap S_{(f)}$. To be precise, let $\Psi (\mathfrak{q})$ be the homogeneous ideal of $S$ generated by $\bigcup_{d \in \mathbb{N}} \{ s \in S_d : s / f^d \in \mathfrak{q} \}$ and let $\Phi (\mathfrak{p}) = S_f \mathfrak{p} \cap S_{(f)}$. It's easy to see that $\Phi \circ \Psi$ acts as the identity on $\operatorname{Spec} A$ (or, for that matter, the set of all ideals of $A$), but I cannot see any obvious reason why $\Psi \circ \Phi$ should act as the identity on the set of prime ideals of $S$ not containing $f$. A detailed proof of this point would be much appreciated.
References
$[1]$ Foundations of Algebraic Geometry.
$[2]$ Algebraic geometry notes (covers material at the level of the first and second volume of EGA): html page, and pdf file.