Blog Archive

Vizualization › Arabic Plots in R
Many R packages do not work well with right-to-left languages like Arabic. Here's how I've gotten around this problem. Read More ›

Riddler › How Big A Table Can The Carpenter Build?
A solution to this week's Riddler Classic from fivethirtyeight.com. Read More ›

Vizualization › Trust in Arab Government vs. Trust in Arab Armies
A short tutorial on multi-panel or faceted plotly graphics in R, without ggplotly(), with data from the Arab Barometer III survey project. Read More ›

Riddler › How High Can Count Von Count Count?
A solution to this week's Riddler Express from fivethirtyeight.com. Read More ›

Vizualization › From ggplot to plotly: Likert Plots in R
A short tutorial on how to use geom_segment() to create a Likert-type plot with ggplot, and then convert this to an interactive plotly chart. Read More ›

Riddler › Who Keeps the Money You Found on the Floor?
A solution to this week's riddle by fivethirtyeight.com. Read More ›

Riddler › What If Robots Cut Your Pizza?
A solution to this week's riddle by fivethirtyeight.com. Read More ›

Economic Outlooks in Arab Countries › Likert Plots in R
A tutorial on Likert plots, a.k.a. diverging stacked bar charts, with ggplot only, with example data from the Arab Barometer III survey. Also discussed are some common questions regarding complex plots with ggplot, for example, ordering factors in a plot and handling negative y-values. Read More ›

Riddler › The Elevator Button Puzzle
A solution to this week's riddle by fivethirtyeight.com. Read More ›