Bryan Lewis suggested that term when he gave me a first demonstration of htmlwidgets. Ease of technology? Fascinating. Cool? Sure! But… is the data visualisation itself “interesting”?
suppressWarnings(suppressMessages(library(maptools)))
library("threejs")
load("flights.RData")
data(wrld_simpl)
earth <- tempfile(fileext=".jpg")
jpeg(earth, width=2048, height=1024, quality=100,
bg="#000025", antialias="default")
par(mar = c(0,0,0,0), pin = c(4,2), pty = "m", xaxs = "i",
xaxt = "n", xpd = FALSE, yaxs = "i", bty = "n", yaxt = "n")
plot(wrld_simpl, col="black", bg="#000025", border="cyan", ann=FALSE,
setParUsrBB=TRUE, lwd=3)
dev.off()
## quartz_off_screen
## 2
globejs(earth, arcs=flights[sample(nrow(flights), 5000), ])
http://www.stat.yale.edu/~jay/world.html
How would this best be done circa 2015? Circa 2012, I used an R script to produce the necessary country overlays as individual .png files as well as the Javascript. What is “interesting” here?
I provide handouts just in case we don’t all have access to the web. However, web exploration is preferable to merely thumbing through the handout, so please do try to connect:
I’ll begin with some examples, including a project of my own that engaged a professional web developer. Such examples can lead to further exploration and discussion of topics ranging from academic perspectives and pedagogy to real-world data visualisation. Some of these extend beyond an isolated conversation of graphical interactivity. For example, the dangers of random explorations and misleading interpretations are not unique to interactive graphics. When problems occur, we need to take the time to stop and ask, “Who, really, is at fault? What can we do? What should we be doing?” A well-known quote from the US National Rifle Association comes to mind: “Guns don’t kill people – people kill people.” We focus on technology – graphical innovations in this case – and ignore pedagogy at our own peril.