Announcement

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

  • Graph combine different titles for columns

    I use graph combine to combine multiple graphs in two columns and I would like to have two different centered titles at the beginning of each column. Does anyone have an idea how to achieve that? I tried different title options but they are always centered in the middle.

    graph combine gr1.gph gr2.gph gr3.gph gr5.gph gr6.gph gr7.gph, cols(2)
    Title 1 Title 2
    graph 1 graph 4
    graph 2 graph 5
    graph 3 graph 6

  • #2
    Combine each column first and then combine the columns:

    Code:
    sysuse auto,clear
    forv i = 1/6 {
        scatter mpg price, name(gr`i', replace)
    }
    graph combine gr1 gr2 gr3, title(Title 1) name(grcol1,replace) row(3)
    graph combine gr4 gr5 gr6, title(Title 2) name(grcol2,replace) row(3)
    graph combine grcol1 grcol2, col(2)

    Comment

    Working...
    X