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