code for graph

> plot(2*x-x^2,x=-2..4,view=[-1.5..3,-3..2]);