Announcement

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

  • How to rename x variables in a bar graph?

    My dichotomous independent variable is coded as 0 and 1, and remains shown as 0 and 1 in a bar graph. How do I replace them with strings on the bar graph without recoding?

  • #2
    This sounds like a case for

    Code:
    over(x, relabel(1 "whatever" 2 "you want"))
    but that is a guess in the absence of code, data or example graph.

    Comment


    • #3
      Hi Linda,

      It would be helpful if you attached an example of your data as well as including the code you use to produce the bar graph.

      Without knowing the data/code, I would suggest looking into the label() option provided in the graph bar documentation.

      -- Ethan

      Comment


      • #4
        Thanks Nick and Ethan. Seems like Nick's code worked. Much appreciated.

        Comment

        Working...
        X