Announcement

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

  • How to get graph labels beneath instead of the right side of the figure.

    Hi,

    For some reason every time a graph something the variable labels is posted on the right side of the graph which compresses the figure. What I am used to is that these labels turn up beneath the figure (under date), this is also how I like it. I dont understand why this is happening because I am using the exact same code as before which generated graph with labels beneath. Does anyone have any input as to how I can fix this?


    Code I am using:
    twoway (area HPresesjon date, yaxis(2) color (gs14)) (tsline m16 m40)

    Example of the graphs I am getting:
    Click image for larger version

Name:	Graph.jpg
Views:	2
Size:	38.2 KB
ID:	1764414
    Attached Files

  • #2
    You mean the legend. See the -pos()- suboption of -legend()-.

    Code:
    help legend_options
    Code:
    twoway (area HPresesjon date, yaxis(2) color (gs14)) (tsline m16 m40), legend(pos(6))

    Comment


    • #3
      Originally posted by Andrew Musau View Post
      You mean the legend. See the -pos()- suboption of -legend()-.

      Code:
      help legend_options
      Code:
      twoway (area HPresesjon date, yaxis(2) color (gs14)) (tsline m16 m40), legend(pos(6))
      Adding the legend position worked. Thanks a lot Andrew!

      Comment

      Working...
      X