Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: Text in graph


From   Lars Folkestad <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: Text in graph
Date   Wed, 23 Nov 2011 13:31:03 +0100

Tried it, did'nt do it. I've cleened the code abit.


twoway scatter meanOI group if group == 1 , mcolor(gs1) text(1.5 150
"HALLLLLLLOOOOOOO", color(black)) || rcap upperOI lowerOI group if group
== 1, lcolor(gs1)|| ///
scatter meanHC group if group == 2 ,mcolor(gs7) || rcap lowerHC upperHC
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( " " )


Still nothing

lars

Den 23/11/11 13.23 skrev "Phil Clayton" <[email protected]>:

>Try getting rid of the commas after lcolor(gs1) and lcolor(gs7)
>
>Phil
>
>On 23/11/2011, at 10:46 PM, Lars Folkestad wrote:
>
>> 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/
>
>
>*
>*   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/


*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index