Announcement

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

  • Editing bar chart labels

    Hi! I am very new to visualizing data through Stata.

    I have used this code below to create my bar chart:

    Code:
        graph bar (sum) maize (sum) beans (sum) potato (sum) peas, over(place) ytitle(Frequency) title(Frequency of Crop Types by Region)
    The resulting graph is this:

    Click image for larger version

Name:	Graph.png
Views:	1
Size:	19.2 KB
ID:	1497386


    In the label section, the variable names come as "sum of maize", etc. I want to only keep them as "maize," removing "sum of" in the beginning. Could you inform me how I can do that? I have checked out write-ups on bar charts, but they do not address this explicitly.

    Thanks!

  • #2
    Code:
    help legend option

    Comment

    Working...
    X