Hi all,
I am an experienced Stata user for many years, and I have made a lot of use of the Statalist throughout the years as a reader. This is my first question, though! So thanks for having me.
After having saved estimates for eight models, I had written the following code for a coefficient plot in Stata 17 using the coefplot command:
However, having installed Stata 18, the "legend(position(6))" option does not work. That is, the legend is always placed on the right-hand side of the plot (i.e., clockpos = 3). The "rows(1)" part does work (i.e., if I change the no. of rows to 2, the legend has two rows).
Also if I use coefplot to plot a single graph, the "legend(position(6))" option works well. E.g., if I do this:
Thanks, much appreciated!
Maurits
I am an experienced Stata user for many years, and I have made a lot of use of the Statalist throughout the years as a reader. This is my first question, though! So thanks for having me.
After having saved estimates for eight models, I had written the following code for a coefficient plot in Stata 17 using the coefplot command:
coefplot est1 est2 est3 est4, bylabel(left-panel) ///This produced a working plot with the legend at the bottom of the plot.
|| est5 est6 est7 est8, bylabel(right-panel) ///
||, keep(var1) legend(position(6) rows(1))
However, having installed Stata 18, the "legend(position(6))" option does not work. That is, the legend is always placed on the right-hand side of the plot (i.e., clockpos = 3). The "rows(1)" part does work (i.e., if I change the no. of rows to 2, the legend has two rows).
Also if I use coefplot to plot a single graph, the "legend(position(6))" option works well. E.g., if I do this:
coefplot est1 est2 est3 est4, keep(var1) legend(position(6) rows(1))Does anyone know what is going on? Am I using the coefplot in the wrong way now?
Thanks, much appreciated!
Maurits
Comment