Announcement

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

  • Matching scale on axis

    Hello everybody.

    I would like to match the scale on both yaxis attached. Variable cv is conditional variance and rho is conditional correlation. To create this I used command:
    Code:
    twoway (tsline cv1) (tsline rho, yaxis(2))
    . Let it be alike scale as right axis


    Looking forward to solve this problem, thanks in advance for your concern
    Attached Files

  • #2
    If you're not jesting, then I don't really understand your request. The scales of the data differ by nearly three orders of magnitude. Why would you want the scales on the plots to be the same?

    Is it that you want to exclude the first month, or so, of data especially from rho so that the excursions are similar looking?
    Last edited by Joseph Coveney; 26 Apr 2017, 18:25.

    Comment


    • #3
      Im not joking, got a task to match conditional variance with conditional correlation and make same scale for both. Yes I would like to exclude the first month of rho.
      If I flip one axis, the line seem to look better but the scale is from 1 to 0 which is not desired though

      edit: ehh, the timezone
      Last edited by Frank Blizzard; 27 Apr 2017, 04:49.

      Comment


      • #4
        You seem to understand what you want (or need, if someone in power over you is insisting on this).


        I don't understand what you expect from us. For example you can scale each variable using (value - min) / (max - min) and also omit whatever you want omitting. That can be easier than changing the axis options.

        Without a data example we cannot experiment on your behalf.

        Comment


        • #5
          Why don't you plot everything on the same y-axis?
          Code:
          twoway (tsline cv1) (tsline rho)

          Comment


          • #6
            Okay guys sorry for interrupting, I figured out everything for me. Couldnt do it on the same axis, just needed one axis for cv1 and cv2 which are conditional variance from two diff variables and condictional correlation but as you can see on a plot, one axis has scale of 4 numbers, the other 5. I matched it already, so did the proper scale in years. Just rushed down the question w/o investigate first by myself. Sorry.

            Feel free to close or delete this thread, case closed

            Comment

            Working...
            X