Im interested in programming a budget line or PPF which is responsive to changes in relative prices, and income effect.
I know the equation for the budget line is $$m\geq p_1x_1+p_2x_2$$ Lets say we have an Income of $m=100$ and prices $p_1=1$ and $p_2=2$.
How would I go about programming this into an excel spreadsheet or R?