I was wondering if there is a way to format the values we enter as text in a graph. Consider the following:
Code:
sysuse auto, clear quiet sum mpg, d local me = r(mean) local sk = r(skewness) histogram mpg, frac text(.395 30 "Mean: `me'" "Skewness: `sk'")
[ATTACH=CONFIG]temp_15325_1564869887454_664[/ATTACH]
As you can see the numbers are with all the decimals. There is no way I can use the typical formatting that we use with display, and I was wondering if the formatting could be done when assigning the values to the local macro, or in any other way.
Thanks!!!!
0 Response to Adding formatted values as text in a graph
Post a Comment