macc_prep: Data preparation for MACC plotting

Description Usage Arguments

View source: R/macc_prep.R

Description

Takes a dataframe containing marginal abatement cost and abatement data, and computes bounding box variables to be passed to 'geom_macc'. Pipe the results into a 'ggplot()' function and add 'geom_macc'.

Usage

1
macc_prep(data, mac, abatement)

Arguments

data

A dataframe containing marginal abatement cost and abatement data.

mac

The name of the variable containing marginal abatement cost data.

abatement

The name of the variable containing abatement data.


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