Differentiating entities by unit ("x (y)") in plotstyle() does not work.
@johannah-pik
|
Trucks;Trucks;#ff6a6a;; |
|
ICE;ICE;#8c8c8c;; |
|
NG;NG;#d11141;; |
|
Trucks (<3.5t);Trucks (<3.5t);#ff7f50;; |
|
Trucks (3.5t-16);Trucks (3.5t-16);#8b0000;; |
|
Trucks (>16) ;Trucks (>16) ;#fa8072;; |
> plotstyle(c('Trucks', 'Trucks (<3.5t)', 'Trucks (3.5t-16)', 'Trucks (>16)'))
Trucks Trucks Trucks Trucks
"#ff6a6a" "#ff6a6a" "#ff6a6a" "#ff6a6a"
You might want to replace the parentheses with brackets (Trucks [<3.5t]) to get that working.
Due to code-quirks, these however work
|
(0−3.5t);(0−3.5t);#B0EBEE;; |
|
(7.5t);(7.5t);#2893A9;; |
|
(40t);(40t);#172f56;; |
|
(26t);(26t);#25467c;; |
|
(18t);(18t);#325fa4;; |
> plotstyle(c('(0−3.5t)', '(7.5t)', '(40t)', '(26t)', '(18t)'))
(0−3.5t) (7.5t) (40t) (26t) (18t)
"#B0EBEE" "#2893A9" "#172f56" "#25467c" "#325fa4"
But maybe you want to be consistent and change it there, too.
@dklein-pik: The origin of these got wiped by the move from svn to git
|
Forcing|CO2 (W/m2);CO2;#331a00;; |
|
Forcing|CH4 (W/m2);CH4;#ffe7a0;; |
|
Forcing|N2O (W/m2);N2O;#44ba97;; |
|
Forcing|F-Gases (W/m2);F-Gases;#ff9977;; |
|
Forcing|Aerosol (W/m2);Aerosol;#6e7700;; |
|
Forcing|Other (W/m2);Other;#08262f;; |
and Anastasis isn't around anymore
|
Emi|GHGtot (Mt CO2-equiv/yr);GHG Emissions (Mt CO2-equiv/yr);red;; |
> plotstyle(c('Forcing|CO2 (W/m2)', 'Forcing|CH4 (W/m2)', 'Forcing|N2O (W/m2)',
+ 'Forcing|F-Gases (W/m2)', 'Forcing|Aerosol (W/m2)',
+ 'Forcing|Other (W/m2)', 'Emi|GHGtot (Mt CO2-equiv/yr)'))
Forcing|CO2 Forcing|CH4 Forcing|N2O Forcing|F-Gases Forcing|Aerosol Forcing|Other
"#331a00" "#ffe7a0" "#44ba97" "#ff9977" "#6e7700" "#08262f"
Emi|GHGtot
"red"
but plotstyle() seems to be mostly your thing.
Should I clean those up in ./inst/extdata/plotstyle.csv? I'm working on an improvement to plotstyle() and would prefer not to carry over legacy edge cases, but issue a warning for entities with units instead.
Differentiating entities by unit (
"x (y)") inplotstyle()does not work.@johannah-pik
mip/inst/extdata/plotstyle.csv
Lines 631 to 636 in 5a7c1cc
You might want to replace the parentheses with brackets (
Trucks [<3.5t]) to get that working.Due to code-quirks, these however work
mip/inst/extdata/plotstyle.csv
Lines 661 to 665 in 5a7c1cc
But maybe you want to be consistent and change it there, too.
@dklein-pik: The origin of these got wiped by the move from svn to git
mip/inst/extdata/plotstyle.csv
Lines 331 to 336 in 5a7c1cc
and Anastasis isn't around anymore
mip/inst/extdata/plotstyle.csv
Line 585 in 5a7c1cc
but
plotstyle()seems to be mostly your thing.Should I clean those up in
./inst/extdata/plotstyle.csv? I'm working on an improvement toplotstyle()and would prefer not to carry over legacy edge cases, but issue a warning for entities with units instead.