Announcement

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

  • one graph for 4 variables - Basic plots

    I seek to represent graphically four variables on the same graph (to compare their evolution). How do it please? A small problem is that it does not have the same scale of measurement.
    Y: variable values X: Year

  • #2
    I think you either need to put your variables on the same scale and then type something like scatter 'a b c d year', or make four separate graphs and combine them into one with the graph combine command.

    Comment


    • #3
      I can't change the scale of variables. The second solution is good I think, but, how I can write the graph combine command. Our variables are noted "DEBT, KAOPEN, F_Dev and F_Open". Thanks

      Comment


      • #4
        This may help:

        https://www.statalist.org/forums/for...ailable-on-ssc

        No combining needed. It isn't even done within the program. Different scales the default!

        Comment


        • #5
          Thank you Sir Nick, I try it.

          Comment


          • #6
            Neat. Nick, you do it with a by construction?

            Comment


            • #7
              david Airey Yes; the program is based on temporary restructuring of the data and calling up a by() option.

              Comment

              Working...
              X