why is the line x=4 is a vertical line.

The equation says x = 4, it says nothing about the y

so any point with an x value of 4 will do, and y can be anything.
e.g. (4,1) , (4,4), (4 -3)
plot these points and see what you get