Announcement

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

  • Coefplot: How to produce an overall title for the graph

    I have looked in the documentation spent quite some time googleing this but have not been able to find a solution. I would like to produce an overall title for different subgraphs produced by coefplot. Here is an example:

    sysuse auto, clear
    foreach var of varlist length weight {
    regress `var' price foreign
    eststo `var'
    }
    coefplot length || weight, title("Results")

    As you can see, the title "Results" appears as title for every subgraph, I would like to have just one title for the whole graph, centered on top (like in the attached example that I produced with the Graph Editor). I am using stata12 IC on a linux OS.
    Your help is very much appreciated!
    Thank you,
    Eva
    Attached Files

  • #2
    Try

    Code:
    coefplot length || weight, byopts(title("Results"))
    Jorge Eduardo Pérez Pérez
    www.jorgeperezperez.com

    Comment


    • #3
      This is documented in the help:

      Code:
       
      coefplot length || weight, byopts(title("Results"))
      Please explain where coefplot and eststo as user-written programs come from. (FAQ Advice http://www.statalist.org/forums/help Section 12)

      Comment


      • #4
        Dear all,

        I have a similar problem Eva had. I am trying to either had a single note at the bottom of the graph (as with the Title, first Code) or two separate ones (second Code). In the first case, it does not recognise the function note, while with the second code the function reports always the last note (in this case the second = Y) for each subparagraph.

        Thank you,
        Mattia


        Code:
         coefplot (women, label(partner reason)) (women_1, label(own reason)) , bylabel (Extra-EU)  ///
                || (women_intra, label(partner reason)) (women_1_intra, label(own reason)),   bylabel (Intra-EU)  ///
                ||,    byopts( title("X"), note ("Y"))

        Code:
          coefplot (women, label(partner reason)) (women_1, label(own reason)) , bylabel (Extra-EU) note(X) ///
                || (women_intra, label(partner reason)) (women_1_intra, label(own reason)),   bylabel (Intra-EU) note(Y) ///
                ||,    byopts( title("trr"))

        Comment

        Working...
        X