A clever use of geom smooth position =…

A clever use of geom_smooth(position = ‘jitter’) for plots looking like hand-written.

http://drunks-and-lampposts.com/2012/10/02/clegg-vs-pleb-an-xkcd-esque-chart/

Slopegraph in R Slopegraph shows the change of…

Slopegraph in R. Slopegraph shows the change of the quantity or rank. Beautiful slopegraph example. http://www.drewconway.com/zia/ Theory of slopegraph. http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0003nk An R and ggplot2 code example of slopegraph https://github.com/leondutoit/slopegraph/blob/master/slopegraph. R Example code. Generate sample data

Add an offset column

Multiple histograms in a plot using ggplot2 ggplot…

Multiple histograms in a plot using ggplot2.

Be careful. The default value for the

parameter is different the histogram and density plot. So set the parameter explicitly. Identity: overlap the two histograms. stack: stack the two histograms on

Change the label of legend not by changing…

Change the label of legend not by changing the data.

http://stackoverflow.com/questions/7323191/how-do-i-manually-change-the-key-labels-in-a-legend-in-ggplot2

How to use eval Here is an example…

How to use eval()? Here is an example.

Created by Pretty R at inside-R.org