tests/testthat/_snaps/colour_palettes.md

outputs the expected snapshot

Code
  palette_1in1000_background
Output
  [1] "#E9E4E3"
Code
  palette_1in1000_goodbad
Output
  # A tibble: 5 x 2
    label       hex    
    <chr>       <chr>  
  1 red         #fa9e9f
  2 green       #CDFA9E
  3 grey        #BAB6B5
  4 dark_grey   #8B8888
  5 darker_grey #656262
Code
  palette_1in1000_plot
Output
  # A tibble: 10 x 2
     label  hex    
     <chr>  <chr>  
   1 black  #000000
   2 white  #FFFFFF
   3 red    #F53D3F
   4 blue   #3d9bf5
   5 green  #5D9324
   6 yellow #f5f33d
   7 violet #973df5
   8 orange #f5973d
   9 pink   #f53d9b
  10 grey   #BAB6B5
Code
  palette_2dii_plot
Output
  # A tibble: 9 x 2
    label       hex    
    <chr>       <chr>  
  1 dark_blue   #1b324f
  2 green       #00c082
  3 orange      #ff9623
  4 grey        #d0d7e1
  5 dark_purple #574099
  6 yellow      #f2e06e
  7 soft_blue   #78c4d6
  8 ruby_red    #a63d57
  9 moss_green  #4a5e54
Code
  palette_2dii_scenario
Output
  # A tibble: 5 x 2
    label        hex    
    <chr>        <chr>  
  1 dark_green   #768555
  2 light_green  #9CAB7C
  3 dark_yellow  #FFFFCC
  4 light_yellow #FDE291
  5 red          #E07B73
Code
  palette_2dii_sector
Output
  # A tibble: 8 x 2
    label      hex    
    <chr>      <chr>  
  1 automotive #78C4D6
  2 aviation   #00c082
  3 cement     #c1b358
  4 coal       #4e3b37
  5 oil&gas    #181716
  6 power      #a63603
  7 shipping   #574099
  8 steel      #a63d57
Code
  palette_2dii_power
Output
  # A tibble: 6 x 2
    label         hex    
    <chr>         <chr>  
  1 coalcap       #7A2701
  2 oilcap        #a63603
  3 gascap        #e6550d
  4 nuclearcap    #fd8d3c
  5 hydrocap      #fdbe85
  6 renewablescap #ffd4ad
Code
  palette_2dii_automotive
Output
  # A tibble: 7 x 2
    label        hex    
    <chr>        <chr>  
  1 ice_hdv      #548995
  2 ice          #609cab
  3 hybrid_hdv   #6cb0c0
  4 hybrid       #78c4d6
  5 fuelcell     #93cfde
  6 electric_hdv #aedbe6
  7 electric     #c9e7ee
Code
  palette_2dii_oil_gas
Output
  # A tibble: 2 x 2
    label hex    
    <chr> <chr>  
  1 gas   #b9b5b0
  2 oil   #181716
Code
  palette_2dii_fossil_fuels
Output
  # A tibble: 3 x 2
    label hex    
    <chr> <chr>  
  1 gas   #b9b5b0
  2 oil   #181716
  3 coal  #4e3b37


2DegreesInvesting/r2dii.colours documentation built on May 7, 2024, 4:49 p.m.