Dear Stata users,
I am using the following code:
twoway (lfitci openness age), by(immig) ytitle("Openness") xtitle("Age") name(openness2)
twoway (lfitci conscientiousness age), by(immig, legend(off)) ytitle("Conscientiousness") xtitle("Age") legend(off) name(conscientiousness2)
twoway (lfitci extraversion age), by(immig, legend(off)) ytitle("Extraversion") xtitle("Age") legend(off) name(extraversion2)
twoway (lfitci agreeableness age), by(immig, legend(off)) ytitle("Agreeableness") xtitle("Age") legend(off) name(agreeableness2)
twoway (lfitci neuroticism age), by(immig, legend(off)) ytitle("Neuroticism") xtitle("Age") legend(off) name(neuroticism2)
grc1leg openness2 conscientiousness2 extraversion2 agreeableness2 neuroticism2, legendfrom(openness2) ycommon xcommon title("Personality over the life cycle")
And I obtained the image attached. Is it possible to obtain these graphs without appearing "Graphs by immig" and the legend appearing only once? Also, I used "ycommon" but my y-axis for "Neuroticism" is different from the others. How can I change that?
I am using Stata 14.
I am using the following code:
twoway (lfitci openness age), by(immig) ytitle("Openness") xtitle("Age") name(openness2)
twoway (lfitci conscientiousness age), by(immig, legend(off)) ytitle("Conscientiousness") xtitle("Age") legend(off) name(conscientiousness2)
twoway (lfitci extraversion age), by(immig, legend(off)) ytitle("Extraversion") xtitle("Age") legend(off) name(extraversion2)
twoway (lfitci agreeableness age), by(immig, legend(off)) ytitle("Agreeableness") xtitle("Age") legend(off) name(agreeableness2)
twoway (lfitci neuroticism age), by(immig, legend(off)) ytitle("Neuroticism") xtitle("Age") legend(off) name(neuroticism2)
grc1leg openness2 conscientiousness2 extraversion2 agreeableness2 neuroticism2, legendfrom(openness2) ycommon xcommon title("Personality over the life cycle")
And I obtained the image attached. Is it possible to obtain these graphs without appearing "Graphs by immig" and the legend appearing only once? Also, I used "ycommon" but my y-axis for "Neuroticism" is different from the others. How can I change that?
I am using Stata 14.
Comment