Announcement

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

  • changing frequency to percentage bar chart




    Hello there

    I plotted this bar char with the following code

    Code:
    graph bar (count), over(reason) over(volgrp) asyvars
    I've been told to convert frequency to % ? How can I do this please?


    ** update
    ans:

    graph bar (percent), over(reason) over(volgrp) asyvars

    Attached Files
    Last edited by Tara Boyle; 09 Feb 2024, 11:28.

  • #2
    You've solved your own problem, or the one you asked about, which is great.

    There is a problem you didn't ask about. It seems that you have 12 categories in one predictor and 2 in the other. It's hard to believe that the axis labels are easily readable in the full graph you don't show. But there is a simple solution: switch to graph hbar, which will surely improve presentation.

    Comment

    Working...
    X