mipplot_generate_color_mapper: Manual coloring

Description Usage Arguments Value

View source: R/mipplot_generate_color_mapper.R

Description

Generate mapper from name of variable to name of color

Usage

1
mipplot_generate_color_mapper(raw_table, category_separator = "\\|")

Arguments

raw_table

rule table which includes "Color_code" column.

category_separator

regular expression for separating right-hand-side variable name into categories. For example: separator should be "\|" for "Secondary Energy|Electricity|Coal"

Value

named list of named string vectors. for example,

result = list( "Emissions|CO2" = c( "Fossil Fuels and Industry" = "#17202a", "Land Use" = "#008000", ...), "Emissions|CO2|Fossil Fuels and Industry" = c( "Energy Demand" = "#444444", ... ),...


UTokyo-mip/mipplot documentation built on Aug. 7, 2021, 6:25 p.m.