Wrapper compiling the functionality of the rest of the 'ggmacc' package. Make a stylish, customisable marginal abatement cost curve plot.
1 2 3 4 5 6 7 8 9 10 |
data |
A dataframe containing marginal abatement cost and abatement data. |
mac |
The variable in 'data' containing marginal abatement cost data. |
abatement |
The variable in 'data' containing marginal abatement cost data. |
fill |
An optional parameter to specify a fill variable to be used by 'geom_macc'. |
cost_threshold |
An optional parameter to specify a cost threshold for the marginal abatement cost. Modifies the behaviour of 'threshold_line' and 'threshold_alpha'. |
zero_line |
An optional parameter; logical indicating whether a solid line should be plotted at 'mac' = 0. |
threshold_line |
An optional parameter; logical indicating whether to implement a horizontal line indicating the 'mac' cost threshold. Requires that 'cost_threshold' be specified. |
threshold_fade |
An optional parameter to set the alpha (transparency) value for plot elements which exceed the marginal abatement cost threshold. Should be between 0 and 1; defaults to 1 (no transparency). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.