Hi all,
I just started using aaplot (from SSC) in Stata 12.1. I am playing around with the addplot option. My ultimate goal is to put a fitted line regression output onto a two-way scatter graph I had previously made (which has axis labels and other features the way I want them). But, when I use the addplot option, I get the error that my save graph is not a two-way graph type. Why do I get the error?
Here is what I am typing.
graph twoway scatter y x1 if total>2 & area~=.
ytitle(, size(medium)) ytitle(test) xtitle(test2) ///
xtitle(, size(medium)) xlabel(,labsize(medium) ///
) title(Panel E) title(, size(medium)) ///
subtitle(Average test) subtitle(, size(medium)) ///
graphregion(color(white)) legend(off)
, saving(graph2.gph)
aaplot y x1, addplot(graph2.gph)
Perhaps there is another way to do what I am trying to do. I am happy to format the aaplot, and just use that, but I would like to see if I can get this approach to work before I try to figure out aaplot formatting.
Thanks,
Steve
I just started using aaplot (from SSC) in Stata 12.1. I am playing around with the addplot option. My ultimate goal is to put a fitted line regression output onto a two-way scatter graph I had previously made (which has axis labels and other features the way I want them). But, when I use the addplot option, I get the error that my save graph is not a two-way graph type. Why do I get the error?
Here is what I am typing.
graph twoway scatter y x1 if total>2 & area~=.
ytitle(, size(medium)) ytitle(test) xtitle(test2) ///
xtitle(, size(medium)) xlabel(,labsize(medium) ///
) title(Panel E) title(, size(medium)) ///
subtitle(Average test) subtitle(, size(medium)) ///
graphregion(color(white)) legend(off)
, saving(graph2.gph)
aaplot y x1, addplot(graph2.gph)
Perhaps there is another way to do what I am trying to do. I am happy to format the aaplot, and just use that, but I would like to see if I can get this approach to work before I try to figure out aaplot formatting.
Thanks,
Steve
Comment