If you're only given the slope you can't graph the line on an x and y axis because there are no intercepts. But if you are given slope intercept equation, y=mx+b, b is the y intercept and then you find and plot that and then m is the slope and find another point on the line and draw a line through those two points and that is the graphed line.