I discuss kernel density plots in Chapter two of Statistical Methods for Psychology, 8 th ed, but I do not show there how to use software to generate them. (The second program in list of R programs ...
colorscheme <- one of the colorschemes from RColorBrewer.