Announcement

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

  • Why cannot I add note to this graph by using the following code?

    twoway (scatter astate year) (scatter awagepre year, yaxis(2)title(wage premium)) , ytitle(State employment) xtitle(Year) xlabel(1992(1)2006) legend(order(1 "..." 2 "..." )) title(Fig.2a ..., size(small)) scale(1) note ("Source: UHS")

  • #2
    It seems there is a blank space between note and the opening parenthesis.
    Best regards,

    Marcos

    Comment


    • #3
      Thank you very much! That is the reason

      Comment


      • #4
        And how to label yaxis(2)? It seems that "label yaxis(2)title(wage premium)" in the above code does not work.

        Comment


        • #5
          I have found the way to solve this problem: ytitle(wage premium, axis(2))

          Comment


          • #6
            My advice is to do like the ancient Romans: divide and conquer. In short, try to work with small pieces of the options, before putting all of them in the same command line.
            Last edited by Marcos Almeida; 17 May 2019, 07:29.
            Best regards,

            Marcos

            Comment

            Working...
            X