Chapter 15 Color Options

15.1 Available Colors

The colors available for graphs come from the Arab Barometer Color Guide. You can see a list of colors with the command:

ArabBarometer_clrs
##         AB blue       AB orange      AB magenta   AB light blue 
##       "#0098BE"       "#DF6E21"       "#AC517F"       "#7CBBC7" 
##       AB purple         AB pink       AB yellow       cool grey 
##       "#796391"       "#CF83A3"       "#FBA950"       "#B1C2CF" 
##            zeke      james bond       dark blue     medium blue 
##       "#CCEAF2"       "#00718E"       "#003D4E"       "#4B91B8" 
##      pale green     olive green          copper    light bronze 
##       "#C8C6A2"       "#AAA764"       "#AC5410"       "#DC9C56" 
##    bright apple dark watermelon      mary clare           plumb 
##       "#FF5E64"       "#E42525"       "#EAA4A4"       "#7F375B" 
##           lilac   bright purple          coffee  midnight ocean 
##       "#B4ADDF"       "#5C1C95"       "#6F3610"       "#004B5E" 
##           salma     almond meat     army jacket         apricot 
##       "#C0E5EE"       "#F6DAC7"       "#706E3E"       "#F7B58B" 
##         mohamed       text grey      bright sky    bright mauve 
##       "#959595"       "#545454"       "#2CB2CE"       "#AD517F" 
##    dark apricot         Algeria           Egypt            Iraq 
##       "#E28F57"       "#DF6E21"       "#00718E"       "#FBA950" 
##          Jordan          Kuwait         Lebanon           Libya 
##       "#7F375B"       "#706E3E"       "#CF83A3"       "#003D4E" 
##      Mauritania         Morocco       Palestine    Saudi Arabia 
##       "#DC9C56"       "#7CBBC7"       "#AC517F"       "#1B909F" 
##           Sudan         Tunisia           Yemen            MENA 
##       "#EAA4A4"       "#AAA764"       "#796391"       "#E42525"

You’ll notice some colors are repeated with different names (particularly when it comes to countries). This makes some parts of graphing easier internally. The unique colors included in the package are shown below with their hex code.

15.2 Available Palettes

The official branding colors have been combined into several color palettes to use with graphs. To see a list of all the (current) palettes, use the following command:

AB_palette_options()
##  [1] "blue pair"          "orange pair"        "purple pair"       
##  [4] "AB Default"         "blue triple"        "orange triple"     
##  [7] "purple triple"      "green triple"       "mono blue"         
## [10] "mono orange"        "mono purple"        "mono green"        
## [13] "dull rainbow"       "cool orange"        "blue-orange"       
## [16] "cool bright orange" "business man"       "pretty cool"       
## [19] "soft rainbow"       "warm"               "purple pink"       
## [22] "stacked"            "age"                "income"            
## [25] "education"          "gender"             "settlement"        
## [28] "religion"           "sect"               "region"            
## [31] "trend colors"