Announcement

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

  • Scatter plots by category but individual scale on x axis

    Hi,

    I want to do multiple scatter plots by category.

    I use this line of code:

    Code:
    twoway scatter tfp_gap i_rd_go if Sectornum==1 || lfit tfp_gap i_rd_go if Sectornum==1, , by(Country)
    The problem is that because the range of the variables is different per category I do not like the way STATA visualizes the scatter plot. I assume the reason is that it uses the same range on the ``x" axis as below. So my question is how I can adjust the scatter plot to get more ``individual" specific range for the x and y axis in the scatter plot ???


  • #2
    Code:
     
     twoway scatter tfp_gap i_rd_go if Sectornum==1 || lfit tfp_gap i_rd_go if Sectornum==1, , by(Country, norescale)
    You can see more in help by option
    ---------------------------------
    Maarten L. Buis
    University of Konstanz
    Department of history and sociology
    box 40
    78457 Konstanz
    Germany
    http://www.maartenbuis.nl
    ---------------------------------

    Comment


    • #3
      Thanks, but I think you mean ``rescale" not ``norescale". I suppose the "norescale"was the default option in STATA that's why I was getting the same scale in the scatter plots.

      Comment


      • #4
        Just to add, there are also separate [no]xrescale and [no]yrescale options if you need them

        Comment

        Working...
        X