if the linear eqn is in form y=kx + b or ax+cy+b = 0 and b is not equal to 0, the easiest way is to get the x intercept by setting y = 0 and get the y-intercept by setting x =0 so you can easily get two points and connect them
if b is 0, you have one point as (0,0) and you can set x = 1 to get another point and then connect them