Announcement

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

  • how to surpress the "graphs by group" when graphing histogram with by option

    I do not want to display "graphs by group", Here is the code:
    Code:
    * Example generated by -dataex-. To install: ssc install dataex
    clear
    input double(tenaciousGoalPursuit group)
    2.9 2
    2.1 2
    3.5 2
    2.1 1
    3.9 2
      4 2
    3.4 2
    2.4 1
    3.3 2
    3.2 2
    3.3 1
    3.2 1
    2.2 1
    3.7 1
      4 2
    2.8 1
    2.9 2
    2.8 1
    3.2 2
    3.9 1
    2.8 1
    2.7 1
    3.5 2
    2.9 2
    3.5 2
    2.5 1
    2.6 1
    3.5 1
    3.4 1
    2.8 1
    3.2 2
    3.4 1
    3.3 2
    2.7 1
    2.9 2
    3.1 2
    3.3 1
    2.5 1
    4.5 1
    3.2 1
    4.5 2
    3.5 1
      2 1
    2.1 1
    3.4 2
    2.6 2
    2.6 2
    3.3 2
    2.8 1
    3.5 2
    3.6 1
    3.3 2
      3 2
    3.5 2
    2.5 1
    4.1 2
    2.8 2
    3.1 2
    2.5 1
    3.1 1
    2.9 2
    3.1 2
    3.4 1
    2.6 1
    1.7 1
    3.8 2
    3.3 1
    2.3 1
    3.5 1
    2.3 1
    2.6 1
    2.2 1
    2.7 1
    3.7 1
    2.3 1
    3.2 2
    3.6 2
    3.8 1
    3.8 1
    2.7 1
    3.2 1
    3.5 2
    3.3 1
      4 1
    2.9 2
    3.4 2
    2.4 1
    2.5 2
    2.8 1
      3 1
    3.6 2
    2.2 1
    3.1 1
    2.4 1
    2.9 2
    3.3 1
    3.2 2
    3.4 1
    3.3 1
      3 1
    end
    hist  tenaciousGoalPursuit ,by(group)  normal

  • #2
    By default, by() adds an overall note saying "Graphs by ...". If you want to suppress the note, type
    Code:
    hist tenaciousGoalPursuit, by(group, note("")) normal

    Comment


    • #3
      Originally posted by Chen Samulsion View Post
      By default, by() adds an overall note saying "Graphs by ...". If you want to suppress the note, type
      Code:
      hist tenaciousGoalPursuit, by(group, note("")) normal
      Thanks a lot, Samulsion! I tried
      Code:
      hist tenaciousGoalPursuit, by(group) note("") normal
      ,but getting no effect, now I know the reason.

      Comment

      Working...
      X