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: Graphs display on a page


From   Christina Wei <[email protected]>
To   [email protected]
Subject   Re: st: Graphs display on a page
Date   Wed, 6 Nov 2013 12:20:33 -0500

Yes, I agree with Nic's comment as well.  Sorry I just assumed that
item_id to be numeric values.  Need more info from the original poster
now I have reread it more carefully.

On Wed, Nov 6, 2013 at 12:05 PM, Nick Cox <[email protected]> wrote:
> This assumes that -item_id- is numeric as well as that its ordered
> values are what should be grouped.
>
> We need more information on what the variable before we can really advise.
> Nick
> [email protected]
>
>
> On 6 November 2013 17:01, Christina Wei <[email protected]> wrote:
>> Assuming you want to break down item_id into 9 groups (assuming no id
>> duplicates and you are okay with sorting your groups by  low to high)
>> here is what I would do:
>>
>> xtile item_id_groups = item_id, nq(9)
>> twoway scatter scatter avg_price quote_date, by(item_id_groups).
>>
>> That should give you the 3x3 plot you are looking for.  Hope this helps.
>>
>> ~Christina
>>
>> On Wed, Nov 6, 2013 at 11:14 AM, Tetsuji Tanaka
>> <[email protected]> wrote:
>>> Dear all,
>>>
>>> I am struggling for making some graphs on one page.
>>> The command programmed is as follows.
>>>
>>> twoway(scatter ave_price quote_date), by(item_id)
>>>
>>> I know this is a right description to do that, but "item_id" has too
>>> many items (around 2000) to display graphs.
>>> So, I want to limit the number of it, let's say 9 (3x3).
>>>
>>> Could someone give me hints on how to do it?
>>>
>>> TJ
>>> *
>>> *   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index