Monday, October 4, 2010

Special Characters in Stata Graphs

Here is a code snippet showing how to insert symbols (e.g. Greek letters or subscripts) in Stata graphs:

local xt2="Max({&Delta}T{subscript:1}-{&Delta}T{subscript:0})"
scatter avegr a1diff1, xt(`xt2') yt("Ave Grade") ///
  ti("Ave Grade vs. Max({&Delta}T{subscript:1}-{&Delta}T{subscript:0})")


2 comments:

  1. Type -help graph_text- for info on the full set of SMCL directives available when working with text in graphs.

    ReplyDelete
  2. Thanks for this post - it was helpful in getting me away from the limited char(n) command. My graphs are much improved.

    ReplyDelete

Subscribe via email

Enter your email address:

Delivered by FeedBurner

Followers

google analytics