Announcement

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

  • Title position

    Dear All

    I have the following graph:
    Click image for larger version

Name:	Screenshot 2025-01-31 105017.png
Views:	1
Size:	73.4 KB
ID:	1771885

    I generated it using:

    Code:
    twoway(line ec_glob year, sort), title({bf: Figure xx}: Economic globalization in the World,size(Medium-small) justification(left)) ytitle(Economic globalization) xtitle(Time)
    My idea was that if I use justification(left) I could achive what I want, i.e. left alignment, but I do not get what I need. While I can choose position(11), this is not what I want, because I would like to align the title with the Y-axis. Usually, I open the graph editor and then I double-click on the title and I use position offset and x offset to align the title as I like.

    However, I would like to be able to x offset directly from the command I use in Stata. I was unable to find out how. Do you have any suggestion?

    Thanks for the help you may provide.

    Dario

  • #2
    It is always easier if you phrase questions in terms of data you supply or a dataset accessible to all users. Does this help?

    Code:
    . webuse grunfeld, clear
    
    . line mvalue time if company == 1, title(Showing some technique)
    
    . line mvalue time if company == 1, title(Showing some technique,  place(w))
    Click image for larger version

Name:	dario.png
Views:	1
Size:	57.2 KB
ID:	1771889

    Comment


    • #3
      Nick Cox Thanks Nick! Exaclty what I need.

      Comment

      Working...
      X