Array
Array
So I want to expand the yscale on the first. I added
Code:
ysc(r(-20(20)100))
Here is what I did:
Code:
margins, dydx(incumbent) at(share_rd=(0(10)50)) vsquish vce(unconditional)
marginsplot, ///
yline(0) ///
graphregion(color(white)) ///
title("Effect van collegedeelname naar aandeel collegepartijen in raad") ///
subtitle("Marginaal effect van collegedeelname op procentuele verandering in aandeel raadszetels", size(small)) ///
recast(line) ///
recastci(rarea) ///
ci1opt(fcolor(midblue%40) lcolor(midblue)) ///
ytitle("Marginaal effect" "met 95% betrouwbaarheidsinterval", size(small)) ///
ylabel(, labsize(small)) ///
ysc(r(-20(20)100)) ///
legend(off) ///
note("Gecontroleerd voor effect van kabinetsdeelname, aantal collegepartijen en verkiezingsjaar") ///
addplot(histogram share_rd if share_rd <=50, ///
frequency ///
xtitle("Aandeel collegepartijen in raadszetels (%)", size(small)) ///
xlabel(, labsize(small)) ///
yaxis(2) ///
ytitle("Aantal waarnemingen (staaf)", axis(2) size(small)) ///
ylabel(#6, axis(2) format(%8.0g) labsize(small)) ///
ysc(axis(2) alt) ///
fcolor(teal%30) ///
lcolor(teal%30))Moving
Code:
ysc(r(-20(20)100))
Code:
)
What do I do wrong? Any help would be greatly appreciated.
0 Response to How to expand yscale range in marginsplot with addplot
Post a Comment