Density plots and animations in R