ggplot2: Plotting two or more overlapping density plots on the same graph

Learning R

One R Tip A Day uses a custom R function to plot two or more overlapping density plots on the same graph.

The same can be very easily accomplished in ggplot2.

View original post 126 more words


ggplot2: Don’t Try This With Excel

Learning R

Building on the original blog post “VBA to Split Data Range into Multiple Chart Series” by Jon Peltier, and the R version in this blog and in his blog, Charts & Graphs blog “shows 4 charts of the same data to demonstrate what Excel chart users are missing by not having a more powerful charting tool. /?/ These analytical displays are not readily available to even advanced Excel users”.

He is using base graphics to draw the plots, I will present the ggplot2 version.

View original post 479 more words