See image of the graph below:
Work Step by Step
The graph of $x=-2$ has a constant $x$ value of $-2$. This means that it never moves from left to right and is completely vertical. In order to graph this line, we simply draw a vertical line at the $x$ value of $-2$.