Announcement

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

  • Issue wih graph

    I use the following command to generate a graph:

    Code:
    graph bar growthrate , over(continent, label(angle(90))) title({bf: Figure 2.4}: Average GDP growth rate in different geographical areas, 1980-2023, size(medsmall) justification(left) position(11))
    The part in red is the title. However I have an issue with the comma before 1980-2023. Stata tells me that size(medsmall) is an invalid option. I can understand that this is becaure there are two commas. How can I include the first comma in the title of the graph without causing any error when running the code? I have tried to put the comma under quotations. I also tried to put the entire title under curly brackets or quotations, but none works.

    Thanks for any help you may provide.

    Best,

    Dario

  • #2
    Quotation marks should solve this. What did you try, exactly?

    Code:
     
     title("{bf: Figure 2.4}: Average GDP growth rate in different geographical areas, 1980-2023", size(medsmall) justification(left) position(11))

    Comment


    • #3
      My bad. I entered quotations marks wrongly, without including {bf: Figure 2.4}, but just the title. Thanks a lot for your help!

      Comment

      Working...
      X