Announcement

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

  • Reversal of second y-axis on a scatter plot

    Hi everyone,

    Can someone suggest how a second Y-axis can be reversed on a scatter plot in Stata, For the first Y-axis it is ysc(reverse) but could not figure out what to do for the second one.

    Regards
    Suhail
    Regards
    Suhail Doi

  • #2
    There was a very similar question recently. I will try to find it.

    It's often a lot easier to plot constant MINUS y1 and another constant MINUS y2 on the two axes and let the axis labels tell the truth.

    Comment


    • #3
      It should be the same option, referring to the second y-axis.

      Code:
      yscale(reverse axis(2))

      Comment


      • #4
        https://www.statalist.org/forums/for...-1-and-yaxis-2 was the thread I was remembering.

        Comment


        • #5
          Andrew Musau it works perfectly , thanks - problem solved

          Nick Cox many thanks for the link

          Regards
          Suhail
          Regards
          Suhail Doi

          Comment

          Working...
          X