mipplot_generate_color_mapper {mipplot} | R Documentation |
Manual coloring
Description
Generate mapper from name of variable to name of color
Usage
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", ... ),...
[Package mipplot version 0.3.1 Index]