Announcement

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

  • Using graph combine how do I make sure the graphs are the same size?

    Dear Stata experts

    I have created a graph as illustrated below using graph combine, simply:

    graph combine graph1 graph2 graph3

    I would like the graph in the second row to be the same dimensions as the two graphs on the first row. Right now the graph in the second row is wider. Is there are way to do this operation? I cannot seem to get it to work. If I add a fourth graph in the graph combine statement all four graphs are fitted such that they have the same dimensions in the combined graph. I would basically like the dimensions of the three graphs below to be as if there was a fourth graph and they all were fitted accordingly.

    Thank you

    Click image for larger version

Name:	Graph example.png
Views:	1
Size:	4.5 KB
ID:	1740988

  • #2
    One way is to use the -by()- option instead of graph combine if you can; see https://journals.sagepub.com/doi/pdf...36867X20976341. Otherwise, graph combine has options such as -holes- and -imargin- which may help.

    Code:
    help graph combine
    Present a reproducible example for code suggestions. See FAQ Advice #12 for details.

    Comment


    • #3
      Dear Andrew

      Thank you for your reply.

      I don't think -by- will work because the graphs are depictions of the same observations using different variables.

      I tried -holes- and -imargin-, but without much succes.

      I tried to arrange the graphs in three columns instead using the -cols(3)- option in graph combine, which I think will do the job just fine.

      Thanks again ..

      Comment


      • #4
        Often graph combine doesn't work well for me when axis title and/or axis labels take up different amounts of space.

        Comment

        Working...
        X