Announcement

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

  • How to generate graphs like this?

    Hi Statalist,

    Can anyone give me some hint on the name of a graph like the one below and possibly how to generate it at Stata (or what keywords to search)? Your kind help will be much appreciated. Thanks.

    Another different question: if I want to plot the change of the component of a discrete variable, say education (lths, hs, col), over time, does Stata have some build-in command? For example, I want to plot the ratios of three values (lths, hs, col) of education over time, while the sum is always one at a given year. The graph will be similar as below but just occupying the whole box.

    Regards,
    Xiaodong
    1.PNG
    Last edited by Xiaodong Fan; 10 Dec 2021, 20:11.

  • #2
    Should've tried a few more keywords, like "Stacked Area"
    https://www.statalist.org/forums/for...panel-per-date

    Comment


    • #3
      I would not stack the data described in #1. You evidently want to show highest formal education reached, less than high school, high school and college. It is not usually necessary or even helpful to emphasise that the proportions add to 1, so a direct line chart of the three proportions might work as well as any other design But that depends in part on which society you are looking at. If any proportion is relatively small, or relatively large, it may be that a transformation will help.


      The thread linked in #2 was mostly in 2014 with an extra post in 2015 that I didn't notice at the time.

      This is just to flag that subsetplot from SSC mentioned in the linked thread has been superseded by fabplot from the Stata Journal.

      See https://journals.sagepub.com/doi/pdf...6867X211025838 for a 2021 paper or skip or skim through https://www.statalist.org/forums/for...ailable-on-ssc

      Comment

      Working...
      X