• GraphGuide
  • Introduction
    • Purpose
    • Best Practices
    • General Guide Process
    • Example Data
    • Header Code
  • Package Workflow and Grammar
    • calculate_ functions
    • plot_ functions
    • AB_save()
  • العربيه
  • Table of Contents
  • I Data Prepperation Functions
  • 1 Preparing Data
    • 1.1 TL;DR
    • 1.2 recode_country()
      • 1.2.1 Example:
    • 1.3 Demographic functions
      • 1.3.1 Basics
    • 1.4 Advanced
    • 1.5 age_demographic()
    • 1.6 education_demographic()
      • 1.6.1 Examples:
    • 1.7 dummy_all()
      • 1.7.1 Examples:
    • 1.8 dummy_select()
      • 1.8.1 Examples:
    • 1.9 In Practice
      • 1.9.1 Example:
  • II Cross Tabulation Graphs
  • 2 Single Country Overall Graphs
    • 2.1 Create a Single Graph
      • 2.1.1 Create a Summary
      • 2.1.2 Plot the Summary
    • 2.2 Create Many Graphs
      • 2.2.1 Identify the Variables
      • 2.2.2 Create Summaries
      • 2.2.3 Plot the Summaries
  • 3 Single Country Demographic Plots
    • 3.1 Create a Single Graph
      • 3.1.1 Creating a Summary
      • 3.1.2 Plotting the Summary
    • 3.2 Create Many Graphs
      • 3.2.1 Create Summaries
      • 3.2.2 Plot the Summaries
  • 4 Comparative Overall Graphs
    • 4.1 Create a Single Graph
      • 4.1.1 Create a Summary
      • 4.1.2 Plot the Summary
    • 4.2 Create Many Graphs
      • 4.2.1 Identify the Variables
      • 4.2.2 Create Summaries
      • 4.2.3 Plot the Summaries
  • 5 Comparative Demographic Graphs
    • 5.1 Create a Single Graph
      • 5.1.1 Creating a Summary
      • 5.1.2 Plotting the Summary
    • 5.2 Create Many Graphs
      • 5.2.1 Create Summaries
      • 5.2.2 Plot the Summaries
  • III Trend Graphs
  • 6 Single Country Trend Graphs
    • 6.1 Create Single Trend Graph
      • 6.1.1 Prep Work
      • 6.1.2 Plot a Trend Graph
    • 6.2 Create Many Graphs
      • 6.2.1 Identify the Variables
      • 6.2.2 Plot the Variables
    • 6.3 Extras
      • 6.3.1 Font Size
      • 6.3.2 Colors
  • 7 Single Country Demographic Trend Graphs
    • 7.1 Create Single Demographic Trend Graph
      • 7.1.1 Prep Work
      • 7.1.2 Plot a Demographic Trend Graph
    • 7.2 Create Many Graphs
      • 7.2.1 Identify the Variables
      • 7.2.2 Plot the Variables
  • 8 Comparative Country Trend Graphs
    • 8.1 Create Comparative Trend Graph
      • 8.1.1 Prep Work
      • 8.1.2 Plot a Comparative Trend Graph
    • 8.2 Create Many Graphs
      • 8.2.1 Identify the Variables
      • 8.2.2 Plot the Variables
    • 8.3 Extras
      • 8.3.1 Select Countries
      • 8.3.2 Font Size
      • 8.3.3 Colors
  • 9 Comparative Country Demographic Trend Graphs
    • 9.1 Create Comparative Demographic Trend Graph
      • 9.1.1 Prep Work
      • 9.1.2 Plot a Comparative Demographic Trend Graph
    • 9.2 Create Many Graphs
      • 9.2.1 Identify the Variables
      • 9.2.2 Plot the Variables
  • IV Stacked Plots
  • 10 Stacked Plots
    • 10.1 Create a Single Graph
      • 10.1.1 Create a Summary
      • 10.1.2 Plot the Summary
    • 10.2 Create Many Graphs
      • 10.2.1 Identify the Variables
      • 10.2.2 Create Many Summaries
      • 10.2.3 Create Many Plots
    • 10.3 Extras
      • 10.3.1 Long Legends
      • 10.3.2 Font Size
      • 10.3.3 Colors
      • 10.3.4 Order
  • 11 BARE BONES: Single Country Stacked Plots
  • V Multiple Questions
  • 12 Single Country Multi-Question Plots
    • 12.1 Prep Work
      • 12.1.1 Question Vector
      • 12.1.2 Question Labels
    • 12.2 Plot a Multiquestion Graph for a Single Country
    • 12.3 Extras
      • 12.3.1 Setting Colors
      • 12.3.2 Data Frame
      • 12.3.3 Explict Grid Example
  • 13 Comparative Multi-Question Plots
    • 13.1 Prep Work
      • 13.1.1 Question List
      • 13.1.2 Question Labels
    • 13.2 Plot a Comparative Multiquestion Graph
    • 13.3 Extras
      • 13.3.1 Setting Colors
      • 13.3.2 Data Frame
      • 13.3.3 Explict Grid Example
  • 14 BARE BONES: Single Country Multi-Question Trend Plots
  • VI All Things Colors
  • 15 Color Options
    • 15.1 Available Colors
    • 15.2 Available Palettes
  • 16 Change Default Colors
    • 16.1 Basic Cross Tabs
    • 16.2 Demographic Cross Tabs
    • 16.3 Stacked Graphs
    • 16.4 Trend Graphs
      • Single Country Trend Graphs
      • Comparative Trend Graphs
  • 17 Highlight Certain Countries
    • 17.1 Single Country Highlight
    • 17.2 Multiple Country Highlight
    • 17.3 Change Highlight Color
  • VII How do I …?
  • 18 Change the Font Size
  • 19 Change the Title/Subtitle/Caption
  • 20 Show only certain countries?
    • 20.1 Plots that go with calculate_ functions
    • 20.2 Plots with no calculate_ functions
  • 21 Change the order of a stacked graph?
    • Move One Factor
    • Swap Factors
  • VIII Appendix
  • Guide Features
  • Installing and Updating ArabBarometR
    • Installing ArabBaromtR
      • Installing from GitHub
      • Downloading from GitHub
    • Updating ArabBarometR
      • Updating via install_github
      • Updating via downloads
  • 22 A Note On Piping {-} {piping-note}
    • Piping puts the object on the left into the function on the right.
    • Piping operators can chain code together.
    • The order matters.
  • Published with bookdown

ArabBarometR Graphing Guide

Table of Contents

Cross Tabulation Graphs

  • Overall Graphs
  • Overall Demographics Graphs
  • Comparative Graphs
  • Comparative Demographic Graphs

Trend Graphs

  • Single Country Trend Graphs
  • Single Country Demographic Trend Graphs
  • Comparative Trend Graphs
  • Comparative Demographic Trend Graphs

BARE BONES Stacked Graphs

  • Comparative Stacked Graphs
  • Single Country Stacked Graphs

BARE BONES Multi-Question Graphs

  • Single Country Multi-Question Plots
  • Comparative Multi-Question Plots
  • Single Country Multi-Question Trend Plots

All Things Color

  • Color Options
  • Change Default Colors
  • Highlight Countries with Color

How Do I…?

  • Change the Font Size
  • Change the Title/Subtitle/Caption
  • Only Show Certain Countries
  • Change the Order for Stacked Graphs

Appendix

  • Guide Features
  • Installing and Updating ArabBarometR