Hello,
Please find below the graph you need.
For x = 0, f(0) = --2, then for x = 1, f(1) = 0, graph is a straight line, you just need to draw that line through points (0, --2) and (1, 0), as simple as that, see below.
Green eyes.