Announcement

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

  • How to get a similar result as "graph bar var1 var2, over(region)" but with 2 y-axis

    Hello everyone,

    I'm new here so this is my first question ever, hope someone can help.

    I created 2 Variabels "diff_Glo" and "posdiff_Poverty" from my variables "Glo" which measures Globalization level and "Poverty" which measures percentage of extreme poverty. The new variables show the time development which I created with "Glo - L30.Glo" & L30.Poverty - Poverty".

    My goal is to show the time development for both variables for different regions (regions in my case: "EAS" "ECS" "LCN" "MEA" "NAC" "SAS" "SSF") in one graph.

    I pretty much got what I wanted with:
    "graph bar diff_Glo posdiff_Poverty if incomelevel_N > 1, over(region_N)" as you can see in my attachment.
    Unfortunately I only have only one y-axis which is not appropriate for my variables.

    Is there a way to pretty much get what I did but with 2 appropriate y-axis so that my poverty variable can actually be seen?
    I did read a litte bit about this topic in other similar questions asked on here, but no answer seems suitable for my case.

    Any help would be really appreciated.
    Thank you in advance
    Attached Files
    Last edited by Lars Fe; 08 Mar 2023, 16:03.
Working...
X