Announcement

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

  • How to put graphs side by side in Stata?

    Dear Statalist Users,

    I have a small question for you:

    I would like to be able to put several Stata graphs side by side, so that I can insert them in a .tex document for example.

    My question is the following:
    • How can I get graphs like the ones below please. The Stata graphs below come from the Working Paper of
      Parkhomenko (2022): "Homeownership, Polarization, and Inequality"



    Thanks a lot for the so much appreciated help!

    Best wishes,

    --
    Michael Duarte Gonçalves
    Attached Files
    Last edited by Michael Duarte Goncalves; 04 Nov 2022, 05:00.

  • #2
    Thanks

    Comment


    • #3
      Code:
      help graph combine

      Comment


      • #4
        Dear Hemanshu Kumar,

        Thank you so much (again! )

        Best wishes,

        --
        Michael Duarte Gonçalves

        Comment


        • #5
          Dear Hemanshu Kumar,

          I tried to use
          Code:
          graph combine one.gph two.gph three.gph, scheme(sj) rows(2)commonscheme
          and in fact, everything works optimally.

          Thank you so much to share your knowledge with me. But I have another question that subsists :
          • How can I have the three graphs below and prevent labels from overlapping with each other: can I fix this with iscale(*0.5) for example?
          Thank you so much in advance. Thank you for your patience too.

          Best wishes,

          --
          Michael Duarte Gonçalves
          Click image for larger version

Name:	Graph.png
Views:	1
Size:	57.5 KB
ID:	1688045

          Comment


          • #6
            SPOILER: Opinion follows. You may disagree.

            There are small tricks that can help but I fear that #5 can't be made to work. It's not your fault; it's not Stata's fault; there is just too much stuff being shown. Your readers won't thank you for putting all those graphs together. The graph you cite in #1 works fairly well, because it's using the same idea repeatedly. It could be improved!

            Comment


            • #7
              Thanks Nick for your advice!

              Comment


              • #8
                I agree with #6, but would like to add that as a first step, you could try working on the individual graphs to make them less cluttered. For instance, the very first graph has two sets of bars, one for men and the other for women -- which is entirely redundant, since the heights of the every pair of blue + pink bars = 100. I can't see the other individual graphs well enough, but there may be plenty you can do there as well.

                Comment


                • #9
                  Hemanshu Kumar you are right. Thanks.
                  Last edited by Michael Duarte Goncalves; 04 Nov 2022, 10:10.

                  Comment


                  • #10
                    https://www.statalist.org/forums/for...in-survey-data also made Hemanshu Kumar 's point about males and females.

                    Comment

                    Working...
                    X