Announcement

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

  • Combine Graphs with different sizes

    Hi Guys,

    Any tips for combining graphs in a way which allows the original graphs to have different sizes? I'm trying to create a graph which combines three graphs with dimensions that look like this image below. I don't think this is possible using the -graph combine- command, which creates a matrix of panels, each with the same size. Apologies if I'm missing something here. I'm sure I could do this manually by combining .png files outside of the Stata environment. But I'm keen to do it within Stata if I can.

    Thanks in advance,

    Peter Siminski
    Click image for larger version

Name:	Graph dimensions.png
Views:	1
Size:	7.0 KB
ID:	1655750




  • #2
    Some technique below:

    Code:
    sysuse auto, clear
    scatter mpg price, fxsize(50) name(gr3)
    scatter mpg price, fysize(50) name(gr1)
    scatter mpg price, fysize(50) name(gr2)
    gr combine gr1 gr2, imargin(0 0 0 0) commonscheme scheme(s1mono) name(gr1_2) rows(2)
    gr combine gr1_2 gr3, imargin(0 0 0 0) commonscheme scheme(s1mono)
    Generating:

    Click image for larger version

Name:	Example.png
Views:	1
Size:	65.2 KB
ID:	1655755

    Comment


    • #3
      Wonderful. Thanks Ali Atia!

      Comment

      Working...
      X