scale_colour_r2dii_tech {pacta.loanbook} | R Documentation |
Custom PACTA technology colour and fill scales
Description
A custom discrete colour and fill scales with colours from the PACTA technology palette.
Usage
scale_colour_r2dii_tech(sector, technologies = NULL, ...)
Arguments
sector |
A string. Sector name specifying a colour palette. Run
|
technologies |
A character vector. Specifies technologies to use as
colours and their order. Run
|
... |
Other parameters passed on to |
Value
An object of class "ScaleDiscrete".
See Also
Other plotting functions:
plot_emission_intensity()
,
plot_techmix()
,
plot_trajectory()
,
prep_emission_intensity()
,
prep_techmix()
,
prep_trajectory()
,
qplot_emission_intensity()
,
qplot_techmix()
,
qplot_trajectory()
,
recode_metric_techmix()
,
recode_metric_trajectory()
,
scale_colour_r2dii()
,
scale_colour_r2dii_sector()
,
scale_fill_r2dii()
,
scale_fill_r2dii_sector()
,
scale_fill_r2dii_tech()
,
spell_out_technology()
,
theme_2dii()
,
to_title()
Examples
library(ggplot2, warn.conflicts = FALSE)
ggplot(mpg) +
geom_point(aes(displ, hwy, color = class)) +
scale_colour_r2dii_tech("automotive")
ggplot(mpg) +
geom_histogram(aes(cyl, fill = class), position = "dodge", bins = 5) +
scale_fill_r2dii_tech("automotive")