Add a Justified Text Block to your Graph in Stata

You can use macros in Stata to help create the exact graph you want. One of the uses for macros is to take a text paragraph and add it to your graph as you would like.

To generate this graph in Stata, use the following commands:

. sysuse auto, clear

  . local lines "The development of Linux is one of the most prominent examples of free and open source software collaboration; typically all the underlying source code can be used, freely modified, and redistributed, both commercially and non-commercially, by anyone under licensessuch as the GNU General Public License. Typically Linux is packaged in a format known as a Linux distribution for desktop and server use."

. forvalues i = 1/11 {
  2.         local line : piece `i' 40 of "`lines'"
  3.         local text `"`text' "`line'""'
  4. }

. graph bar price, bargap(-30) over(foreign) note(`text', margin(large) justification(left))