Announcement

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

  • Change landscape mode in twoway scatter?

    I am trying to fit 13 twoway scatter plots on to one page, preferably in A4 format, but I can't find an option to change the orientation of graphs from landscape to potrait (Meaning everything becomes blurry and squeezed).

    I have tried using the aspectratio option, here is shown an example of a value of 1.5 which looks great in the individual plots - however, as you can see the problem arises with combining graphs as Stata want to fit the graphs in landscape mode.
    grc1leg with altered aspectratio of individual graphs
    Last edited by Anne Dam; 30 Jul 2015, 03:31.

  • #2
    I have tried using the aspectratio option, here is shown an example of a value of 1.5 which looks great in the individual plots - however, as you can see the problem arises with combining graphs as Stata want to fit the graphs in landscape mode.

    Comment


    • #3
      Please show exactly (Exactly!) the commands you used to generate the graph.

      Comment


      • #4
        Hi Panchen,

        Try fitting your graphs without the aspectratio option and instead using the xsize() and ysize() options to manually stretch or squash your resulting graph to the orientation you want.

        Dan

        Comment


        • #5
          Thanks for the suggestion. I really thought xsize and ysize would do the trick, but when I combine the graphs are still being fitted on a landscape mode canvas (Ignoring the size-adjustments I just did).

          Right now the individual graphs are:

          twoway (scatter met1 strain if area2==2 & exp==1, ms(Dh) mlabel(id) mcolor(red) ) ///
          (scatter met1 strain if area2==2 & exp==2, ms(x) mlabel(id) mcolor(blue) ) ///
          (scatter met1 strain if area2==2 & exp==3, ms(x) mlabel(id) mcolor(gray) ) ///
          , xsize(1) ysize(2) ylabel(0(10000)60000, labsize(large)) legend( order(1 "exp1" 2 "exp2")) xsc(r(0.75 3.25)) xlabel(1 "FRL" 2 "FSL" 3 "SD" , labsize(large)) ytitle(X ng/g tissue, size(large)) title("Y", size(huge)) name(p1, replace)




          and then:
          grc1leg p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13

          but I get the same result from - just with labels
          graph combine p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13

          Comment


          • #6
            Omit the xsize() and ysize() options for the individual graphs, but include them in the grc1leg and graph combine commands. For example, xsize(10) and ysize(7).

            Comment


            • #7
              Thank you so much Svend!

              graph combine p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13, xsize(6) ysize(10)

              did the trick! (It does not work with grc1leg)

              Comment

              Working...
              X