It should be noted that the slope of a horizontal line is always zero. The equation of a line given the slope and a point can be calculated using the formula

Given that the slope is zero, and coordinate (-2,4), the equation of the line would be

The graph of the equation y=4 is as shown below
Hence, the equation of the line is y=4 and the graph is as shown above