Graphing horizontal and vertical lines is easy. Horizontal and vertical lines have zero slopes. To graph horizontal and vertical lines in the standard coordinate system, we use the equation y = k, where k is the point on the y-axis for the horizontal line or k is the point on the x-axis for the vertical line. K is the constant here. Things to keep in mind while graphing horizontal and vertical lines.