Learn R Programming

r2dii.plot (version 0.5.2)

qplot_techmix: Create a quick techmix plot

Description

Compared to plot_techmix() this function:

  • is restricted to plotting future as 5 years from the start year,

  • outputs pretty bar labels, based on metric column,

  • outputs pretty legend labels, based on technology column,

  • outputs a title.

Usage

qplot_techmix(data)

Value

An object of class "ggplot".

Arguments

data

A data frame like the output of prep_techmix().

See Also

plot_techmix

Examples

Run this code
# `data` must meet documented "Requirements"
data <- subset(
  market_share_demo,
  sector == "power" &
    region == "global" &
    scenario_source == "demo_2020" &
    metric %in% c("projected", "corporate_economy", "target_sds")
)

qplot_techmix(data)

Run the code above in your browser using DataLab