The code I wrote is as follows:
clear
Code:
set obs 100 generate q=_n-1 generate p=50 generate cons=100-q twoway (line cons q) (line p q, lpattern(dash)), xline(25, lpattern(dash)) xtitle("Consumption") ytitle("Price") text(51 51 "O", place(nw)) text(50 1 "A", place(s)) text(100 1 "B", place(n)) xlabel(25 "Garbage") ylabel(50 "p" 100 "a") title("Free Disposal of Garbage") xscale(range(0 105)) legend(off) graphregion(margin(zero))
Leave a comment: