Announcement

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

  • How to combine five graphs, where one graph takes top row, second row takes two graphs, and third row takes two graphs

    I am trying to create a visual that looks like this, where graph 1 takes up the top row, graphs 2 and 3 take up the second row, and graphs 4 and 5 take up the third row and the legend from graph 5 (graphs 1-4 don't have legends) appears at the end like this:
    Click image for larger version

Name:	statascreenshotdec18_2.jpg
Views:	1
Size:	1.43 MB
ID:	1769689


    I tried using this code:

    graph combine graph1.gph, row(1) col(1) saving(g1b)
    graph combine graph2.gph graph3.gph, row(2) col(1) saving(g23)
    graph combine graph4.gph graph5.gph, row(3) col(1) saving(g45)
    graph combine graph1.gph g23.gph g45.gph


    but it created this image in which graph 2 & 3 are being dragged up into a second column and share the same row as graph 1.
    Click image for larger version

Name:	statascreenshotdec18.PNG
Views:	1
Size:	237.4 KB
ID:	1769694




    Any suggestions for how to rectify this will be much appreciated!
    Last edited by Lara Kh; 18 Dec 2024, 12:06.

  • #2
    I'd recommend backing up and showing us the numbers: means (?) and confidence intervals.

    Tinkering with how you combine seems unlikely to be the best strategy here. You need more consistency on use of legends and explanations of units and you need axis labels that are not mushed up together. Why is the step count presented as being in minutes?

    This dataset seems vaguely familiar. Have you posted on it before?

    See https://journals.sagepub.com/doi/pdf...36867X20976341 for one strategy.

    Comment

    Working...
    X