Announcement

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

  • Scale Y values for each seperate graph

    Hi all,

    I am having trouble with scaling the Y values for each individual graph. The data is in long-form, and this was the only way I found to graph all the values for each type of record over time.; total are the values, and record are what the values represent (ie. HDI, GDP ...etc.). Attached is the graph I get from the code below. As you can see the scales are off and I would like to have each separate graph scaled properly with its own y-scale on its axis. This is so that we can see the trends for certain values of record like GDP over time more clearly. Also is there a way to sort the by() function in a way where I can select certain values for record which are graphed?

    Thank you all for your time.



    Code:
    line total year, by(record)
    Click image for larger version

Name:	example problem.png
Views:	2
Size:	109.6 KB
ID:	1664179


    Attached Files

  • #2

    Code:
    by(record, yrescale)
    I suspect you will need a reshape to do most things you want to do.

    Comment


    • #3
      Thank you!

      Comment

      Working...
      X