Thanks as always to Kit Baum, a new program combineplot is available from SSC, to be installed as usual using ssc inst combineplot.
As usual, the help file gives the documentation, so the better thing for me to do is to give some examples so you can see whether you care.
The flavour is that combineplot instructs some graph command to draw a series of graphs using different variables, saving each graph so that they can be combined in one image. Many users will know how to set up a loop, save a graph each time, and then put the graphs together. That remains the best technique for anything at all complicated, but shortcuts are possible when we're doing the same thing over and over again. The graphs could just be exploratory or they could come close to something suitable for a presentation or a paper.
Those are univariate examples. We can do bivariate examples too
There are some little options in there to label each graph, and in this case, to tweak the presentation of those labels away from the default.
Comments from Alfonso Sánchez-Peñalver and Dirk Enzmann in an earlier thread stimulated development of the program.
As usual, the help file gives the documentation, so the better thing for me to do is to give some examples so you can see whether you care.
Code:
sysuse auto, clear set scheme s1color combineplot mpg price weight headroom: dotplot @y, over(rep78) combineplot price mpg headroom-gear, combine(imargin(small)): histogram @y, freq yla(, ang(h))
Those are univariate examples. We can do bivariate examples too
Code:
combineplot (mpg price) (rep78 foreign), sequence(a b c d) seqopts(caption(, color(red))): graph box @y, over(@x)
Comments from Alfonso Sánchez-Peñalver and Dirk Enzmann in an earlier thread stimulated development of the program.
Comment