This past week for work I had to create some plots to show the
max, min, and median of a measure across the levels of a
qualitative variable, and show the max and min of the same
variable within a subgroup of the dataset. To illustrate what I
mean, I took a fun dataset from the data and story library and
recreated the plot that I made at work. The data are supposed to
represent the results of a study done on how long it took
subjects to complete a pen and paper maze while they were either
smelling a floral scent or not. Other than the time to
completion (the main variable of interest), some other variables
are recorded, like sex and whether or not the subject is a
smoker. I represent the min, max, and median completion time
that it took men and women to complete the maze with the
“crossbar” geom, which show obvious overlap in performance
across the genders (however it’s apparent that men were a bit
more variable in their performance than women). The seemingly
interesting result is represented by the dots. The