Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Text in graph


From   Lars Folkestad <lfolkestad@health.sdu.dk>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: Text in graph
Date   Wed, 23 Nov 2011 13:16:11 +0100

Dear List

I seem to be doing somthing wrong. I cannot get text into my twoway plot with rcap option.

The code:
twoway scatter var1 group if group == 1 , mcolor(gs1) text(1.5 150 "I want text here", color(black)) || rcap uppervar1 lowervar1 group if group == 1, lcolor(gs1) ,text(1.0 150 "**", color(black)) || ///
scatter var2 group if group == 2 ,mcolor(gs7) || rcap lowervar2 uppervar2 group if group == 2 ,lcolor(gs7), ///
ytitle(vBMD trabecular [mgHA/cm3]) xscale(range(0 3)) title(Trabecular vBMD Tibia) legend(on) ///
graphregion(fcolor(white) lcolor(white)) xlabel(none) xtitle( " " )

What am i doing wrong?


lars

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index