Announcement

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

  • new Stata ado: stckar draws stacked area graphs

    Hello,

    there is a new ado available in the ssc that generates stacked area graphs for up to 10 variables with alternating positive and negative values.
    It includes a few options for labeling, consistent colors and ordering of the variables.
    You can install it by typing
    Code:
    ssc install stckar
    Two examples:
    Annual change in employed in germany by country of origin:
    Click image for larger version

Name:	employment1.png
Views:	1
Size:	79.5 KB
ID:	1730538

    Code:
    stckar ger eu balkan easterneurope asyl other months, graphopt(xlabel(,angle(60)) ylabel(,angle(60)))

    Foreign trade of germany with selected countries, the total then represents the balance:
    Click image for larger version

Name:	foreigntrade1.png
Views:	1
Size:	77.1 KB
ID:	1730537

    Code:
    stckar China1 China2 USA1 USA2 UK1 UK2 NL1 NL2 FR1 FR2 year, nosort
    The corresponding data:
    foreign trade data, Statistik 51000 in destatis by Statistisches Bundesamt (Destatis), 2023
    employment data, migration monitor by Statistik der Bundesagentur für Arbeit, Juni 2023

    If you encounter problems or anything you can also contact me via email.

    Greetings
    Jonathan
    Attached Files
Working...
X