Dotplots for Regression tables
Continuing our project on tables to graphs, I am writing a function with the objective of taking the regression table where multiple models are displayed and turning it into a graph.
The way it is set up right now is as follows. The user supplies a list with the estimates, and (possibly two) confidence intervals. I will write a function that gets these values from regression models for the user convenience.
Vdotplot(Y,label.x=label.vec.model)
I am writing it using R’s grid system (instead of base graphics.) One advantage is that one can interactively change the graph. For example, to rotate the x-axis labels 45 degrees:
grid.edit(gPath(”xaxis”,”labels”),rot=45,just=”right”)
This works because I named in the function the x axis `xaxis`.
Hopefully by the end of the month I will have something usable and will post it here.

1 Comment so far
You might want to have a look at the ggerrorbar grob in ggplot, which works very similarly to this. You can also use grid to edit the axis labels - I’m currently working on the documentation to make it easy.