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 on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: Twoway Range Plots


From   Erika Kociolek <ekociole@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Twoway Range Plots
Date   Mon, 17 Jun 2013 15:45:31 -0700

And it does work. Thank you very much!

Erika

On Mon, Jun 17, 2013 at 3:25 PM, Nick Cox <njcoxstata@gmail.com> wrote:
> -xlabel(1 2 3 4, valuelabel)- should work.
>
> Nick
> njcoxstata@gmail.com
>
>
> On 17 June 2013 23:21, Erika Kociolek <ekociole@gmail.com> wrote:
>> Thank you for the great suggestion to combine rcap and scatter - works
>> wonderfully.
>>
>> The only way I can get labels to appear in this graph is to use the
>> following code:
>>
>> twoway rcap high low group_numeric, xlabel(1 "US" 2 "Europe" 3 "Asia"
>> 4 "Africa")
>>
>> Is there a way to just use the labels from the variable group_numeric
>> (which was generated using encode(string_group),
>> generate(group_numeric)) instead of typing all of the group labels
>> manually into xlabel?
>>
>> Thanks!
>> Erika
>>
>> On Mon, Jun 17, 2013 at 2:56 PM, Nick Cox <njcoxstata@gmail.com> wrote:
>>> You need numeric axes for -twoway-. What is the difficulty in showing
>>> value labels?
>>>
>>> twoway rcap min max x || scatter mean x
>>>
>>> is one of several ways to show min, max and mean together.
>>>
>>> Nick
>>> njcoxstata@gmail.com
>>>
>>> On 17 June 2013 20:54, Erika Kociolek <ekociole@gmail.com> wrote:
>>>
>>>> I have a question about the range plots that can be generated using
>>>> Stata's twoway command. Is there any way to generate these plots with
>>>> a string variable on the x-axis? I tried encoding the string variable
>>>> of interest and plotting that (which works) but I cannot figure out
>>>> how to plot the labels of the encoded string variable on the x-axis.
>>>>
>>>> Also, I really would like to show the min, mean, and max on a range
>>>> plot, but am not sure if that can be done (looks like twoway only
>>>> takes min/max inputs). Are there other ways to achieve this?
>>> *
>>> *   For searches and help try:
>>> *   http://www.stata.com/help.cgi?search
>>> *   http://www.stata.com/support/faqs/resources/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/faqs/resources/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/faqs/resources/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/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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