Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Timeline as x-axis with coefplot

    Dear all,

    I am having trouble making a graph with coefplot. I want a similar graph as the one below, but I would like the x-axis to be a timeline (i.e. space between coefficients that is proportional to the number of years between elections). For instance, the 1876 and 1877 coefficients should be closer than 1881 and 1893. I don't know if such feature is possible with coefplot.

    Here is the code I ran so far:

    coefplot l_1876 l_1877 l_1881 l_1893 l_1898 l_1902 l_1906 l_1910 l_1914 l_1928 l_1932 l_1936, vertical drop(_cons) yline(0) title(Absolute effect, color(black)) legend(off) ytitle(Vote for left (%)) xtitle(Elections) mlcolor(black) mfcolor(white) ciopts(lcolor(black)) levels(95) note("Note: 95% confidence interval")

    Click image for larger version

Name:	statalist_coefplot.png
Views:	1
Size:	33.0 KB
ID:	1686521


    Many thanks in advance
Working...
X