Announcement

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

  • stacked line graph

    Dear Statalist

    I have produced a stacked bar graph for different mortality rates for different causes in year x, so the height of the graph is equal to total mortality. I would like to present this over time, as an area plot/ or stacked line graph. Essentially each bar for each year placed next to one another with no gaps.

    When I use twoway area, each cause is plotted on top of the other, rather than stacked; the highest point on the graph for year y is the cause with the highest value, whereas I would like this to equal the sum of all the causes.

    Any help would be much appreciated

    Best Wishes

    Joe

  • #2
    You describe what you need to do, so just implement it. See, for example,

    https://www.statalist.org/forums/for...cked-area-plot

    Comment


    • #3
      Thank you Andrew for your response - this worked well

      Best Wishes

      Joe

      Comment

      Working...
      X