Miller (1988)‘s warning about the median replicated in R

This page demonstrates a replication of Miller (1988)‘s simulation revealing the estimation bias manifest when estimating the median of skewed data (ex. human response time data). The code demonstrates Monte Carlo simulation in R using the plyr package and the use of ggplot2 for graphics. It should take about a half hour to complete on a reasonably fast (circa 2008) system.
For the impatient, here is a vector graphic pdf copy of the above graph (i.e. zoomable, so you can read the numbers), and for the thorough, here is a plot of the estimation variability (“ev”, computed as the standard deviation of estimates. n.b. Miller’s original paper claims to report the sd of estimates but actually reports the variance of estimates; the square root of Miller’s values roughly match those obtained here).