Redacted

Apr 18, 2019

The redacted version (pdf) of the Mueller report was released today. Here’s the thumbnailed view for a sense of the redactions.

I had to do this in R real quick, or I wasn’t going to get anything done for the rest of the day. Here’s my snippet in case you’re interested:

# install.packages(c("pdftools", "png"))

library(pdftools)
library(png)

pdf_convert("mueller-report.pdf")

# Dimensions of 1 page.
imgwidth <- 612
imgheight <- 792

# Grid dimensions.
gridwidth <- 30
gridheight <- 15

# Total plot width and height.
spacing <- 1
totalwidth <- (imgwidth+spacing) * (gridwidth)
totalheight <- (imgheight+spacing) * gridheight

# Plot all the pages and save as PNG.
png("all_pages.png", round((imgwidth+spacing)*gridwidth/7), round((imgheight+spacing)*gridheight/7))
par(mar=c(0,0,0,0))
plot(0, 0, type='n', xlim=c(0, totalwidth), ylim=c(0, totalheight), asp=1, bty="n", axes=FALSE)
for (i in 1:448) {
    fname <- paste("mueller-report_", i, ".png", sep="")
    img <- readPNG(fname)
    
    x <- (i %% gridwidth) * (imgwidth+spacing)
    y <- totalheight - (floor(i / gridwidth)) * (imgheight+spacing)
    
    rasterImage(img, xleft=x, ybottom = y-imgheight, xright = x+imgwidth, ytop=y)
}
dev.off()

Become a member. Support an independent site. Make great charts.

See What You Get

Learn to Visualize Data See All →

A Quick and Easy Way to Make Spiral Charts in R

Now that we’ve discovered another way to annoy chart snobs, here’s how you can make your own spirals.

How to Make an Animated Map in R, Part 4

In the the last part of the four-part series, you make a longer animation with more data and annotate.

How I Made That: Interactive Heatmap

Add interaction so that you can show different segments of the data and allow comparisons.

How to Make a Smoother Animated Growth Map in R

Show change over time and geography with smooth transitions.

Favorites

The Stages of Relationships, Distributed

Everyone’s relationship timeline is a little different. This animation plays out real-life paths to marriage.

The Best Data Visualization Projects of 2011

I almost didn’t make a best-of list this year, but …

How You Will Die

So far we’ve seen when you will die and how other people tend to die. Now let’s put the two together to see how and when you will die, given your sex, race, and age.

Where People Run in Major Cities

There are many exercise apps that allow you to keep …