As many know (otherwise see here), with appropriate positioning, subtitles and notes can be used to place text inside the plot region of a graph.
I need some creative help in figuring out if it is possible to apply this solution to coefplot (from ssc), used to present coefficients from sets of models organized by sub-graphs, in order to place text within the plot region of each sub-graph (a test statistic). Alas, the bylabel() sub-graph option (which cannot be repeated more than once per sub-graph) is busy for another reason, so it can't be used.
The following code can be used to exemplify. Suppose I have sub-graph-specific stored text, and I want to add it to each sub-graph, let's say on the north-east corner of each area (not fitting very well in this example case).
Any suggestion? I'm thinking of hijacking the legend function for this, but not entirely sure - and, as always, there might be a better solution I'm overlooking.
I need some creative help in figuring out if it is possible to apply this solution to coefplot (from ssc), used to present coefficients from sets of models organized by sub-graphs, in order to place text within the plot region of each sub-graph (a test statistic). Alas, the bylabel() sub-graph option (which cannot be repeated more than once per sub-graph) is busy for another reason, so it can't be used.
The following code can be used to exemplify. Suppose I have sub-graph-specific stored text, and I want to add it to each sub-graph, let's say on the north-east corner of each area (not fitting very well in this example case).
Code:
sysuse auto, clear regress price mpg trunk length turn if foreign==0 estimates store D regress price mpg trunk length turn if foreign==1 estimates store F coefplot D, bylabel(Domestic Cars) || F, bylabel(Foreign Cars) ||, drop(_cons) xline(0)
Comment