ggmacc: Out-of-the-box marginal abatement cost curve

Description Usage Arguments

View source: R/ggmacc.R

Description

Wrapper compiling the functionality of the rest of the 'ggmacc' package. Make a stylish, customisable marginal abatement cost curve plot.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
ggmacc(
  data,
  mac,
  abatement,
  fill = NULL,
  cost_threshold = NULL,
  zero_line = FALSE,
  threshold_line = FALSE,
  threshold_fade = 1
)

Arguments

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).


aj-sykes92/ggmacc documentation built on Jan. 7, 2021, 8:31 p.m.