P – maximum fine for illegal disposal of waste (illegal dumping);
V – volume of waste to be [illegally] disposed by the waste owner;
E – costs of illegal disposal of waste per unit;
T – official tax for waste disposal per unit.
The conditions for the profitable landfilling can be described as follows:
Here: V1 – total volume of waste that is supposed to be disposed at illegal landfill;
Tc – tax for disposal of waste at illegal landfill per unit;
P1 – maximum fine for illegal landfilling;
E1 – expenditures of the illegal landfill owner for disposal of waste per unit.
Lets plot the graphs (with some random numbers (except for fines) for a nice looking representation) to have a clue how it looks like.
Note that there is a footnote (this post provides nice examples on how to do it) with the values used for plotting – it is important to have to have this kind of indication if we want to create a series of plots.
Now I will show you the result and then will provide the code and some tips.
|Playing with the plot|
Tips and Tricks
- All the data for the plot must be stored in one dataframe.
- All data for plots must be derived from the dataframe (avoid passing single variables to ggplot).
- Do not use geom_hline() for the horizontal line – generate values for this line and store them inside dataframe and draw as a regular graph.
- To create a footnote (to know exactly which parameters were used for the current graph) use arrangeGrob() function from the gridExtra library.
- Always use $ inside aes() settings to address columns of your dataframe if you want plots to be interactive
library(ggplot2) library(grid) library(gridExtra) library(manipulate) library(scales) library(reshape2) ## Ta --- official tax for waste utilisation per tonne or cubic metre. ## k --- probability of getting fined for illegal dumping the waste owner (0