Announcement

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

  • How to change the displayed category order for a Stripplot over variable ?

    I am trying to re-order the categories from my over variable ("treatment") in a stripplot I have created. I have tried to use the over_subopts (e.g., sort(varname)) but they don't work. The reverse order of what they are in now would be sufficient. Any suggestions are welcome...! Below is the relevant code:

    stripplot revabfr, over(treatment) by(qpid3_2, cols(1) note("")) cumul cumprob bar center refline yla(, ang(h)) xla(, noticks) xsc(titlegap(*5)) note("")

    Thanks!

  • #2
    stripplot is from SSC, as you are asked to explain.

    I think you're imagining or hoping that the syntax of graph bar or graph hbar or graph dot and over() carries over here, but stripplot is a wrapper for graph twoway and has no links to any of those three. Further, there are no suboptions for over() in stripplot, either documented or undocumented

    As such, xsc(reverse) and ysc(reverse) are, however, supported but the result may not be quite what you want.

    To say more about what best to do, it would help to know more about the treatment variable, as you don't give a data example or show the graph you got, and there is no point in guessing about it otherwise.

    Comment


    • #3
      That's perfect -- thanks! I'll try to post more information next time.

      Comment

      Working...
      X