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
Source: Ann Swanson, 12 fascinating optical illusions show how color can trick the eye, The Washington Post, February 27, 2015, http://www.washingtonpost.com/blogs/wonkblog/wp/2015/02/27/12-fascinating-optical-illusions-show-how-color-can-trick-the-eye/?tid=sm_tw.
View original post 420 more words
tables2graphs has useful examples including R code, but there’s a simpler way. There’s an R package for (almost) everything, and (of course) you’ll find one to produce coefficient plots. Actually there are several ones.
The one I end up using most is the
coefplot function in the package arm. It handles most common models out of the box. For those it doesn’t, you can simply supply the coefficients. Here’s the code for the coefficient plot shown. The first two lines are just to get the data in case you’re interested in full replication.
The default in arm is to use a vertical layout, so
coefplot(m1) works wonderfully. Often I prefer the horizontal layout, which is easily done with
vertical=FALSE; I also add custom margins so that the variable…
View original post 361 more words