Announcement

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

  • ytitle horiztonally

    Hi there!

    Normally, I understand one can print y-titles horizontally in Stata with the option,
    Code:
     line yvar xvar, ytitle("Dependent Variable", orientation(horizontal))
    I'd like to generalize this option to the use-case of graphing lines over a third categorical variable,
    Code:
     line yvar xvar, by(zvar) ytitle("Dependent Variable", orientation(horizontal))
    Yet, when I attempt this, the y-title orientation remains vertical, despite having specified the "orientation()" option.

    Any tips on how to print the y-title horizontally when using the "by()" option?
    Last edited by Daniel Scott Smith; 16 Jun 2019, 16:07.

  • #2
    With the by() option the relevant title is l1():

    Code:
    . sysuse auto
    (1978 Automobile Data)
    
    . scatter price weight, by(fore, l1("Dependent Variable", orientation(horizontal)) )

    Comment


    • #3
      Thanks!

      Comment

      Working...
      X