qplot_techmix: Create a quick techmix plot

Description Usage Arguments Value See Also Examples

View source: R/qplot_techmix.R

Description

Compared to plot_techmix() this function:

Usage

1

Arguments

data

A data frame. Requirements:

  • The structure must be like market_share.

  • The following columns must have a single value: sector, region, scenario_source.

  • The column metric must have a portfolio (e.g. "projected"), a benchmark (e.g. "corporate_economy"), and a single scenario (e.g. "target_sds").

  • (Optional) If present, the column label is used for data labels.

  • (Optional) If present, the column label_tech is used for technology labels.

Value

An object of class "ggplot".

See Also

plot_techmix

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# `data` must meet documented "Requirements"
data <- subset(
  market_share,
  sector == "power" &
    region == "global" &
    scenario_source == "demo_2020" &
    metric %in% c("projected", "corporate_economy", "target_sds")
)

qplot_techmix(data)

r2dii.plot documentation built on Oct. 16, 2021, 9:07 a.m.