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: scatter plot with multiple x-labels


From   Shehzad Ali <drshehzad_ali@yahoo.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   Re: st: scatter plot with multiple x-labels
Date   Tue, 29 May 2012 13:00:25 +0100 (BST)

Thanks, Nick. This is very helpful. 

Regards
Shehzad


----- Original Message -----
> From: Nick Cox <njcoxstata@gmail.com>
> To: statalist@hsphsun2.harvard.edu
> Cc: 
> Sent: Wednesday, 23 May 2012, 16:02
> Subject: Re: st: scatter plot with multiple x-labels
> 
> -devnplot- (SSC) gets you some if not all of the way.
> 
> -graph dot- may be the most neglected graph command in official Stata.
> Note that it has a -vertical- option (undocumented though that is, I
> believe).
> 
> That said, it is
> 
> 1. Very easy to run out of real estate here. Identifiers on three
> different levels?
> 
> 2. Often better to plot identifiers so that they read horizontally.
> What may bite here are your patient ids. If they are at all long, they
> may not fit at all on the x axis.
> 
> Consider
> 
> sysuse auto, clear
> 
> graph dot (asis) mpg if foreign, over(make) over(rep78) nofill
> 
> graph dot (asis) mpg if foreign, over(make, label(ang(v))) over(rep78)
> nofill vertical
> 
> Nick
> 
> On Wed, May 23, 2012 at 3:37 PM, Shehzad Ali <drshehzad_ali@yahoo.com> 
> wrote:
> 
>>  I have patient outcome scores on ten occasions, and patients are nested 
> within health providers. I would like to show this in a scatter plot with scores 
> on the y-axis and patient id on the x-axis, which is easy to do. However, I want 
> to show that patients are nested within therapists. One potential approach is to 
> sort the x-axis of the scatter plot by providers and patients within providers 
> and add a second x-label under patient_id to represent therapists (to show 
> nesting). I am wondering if anyone can suggest how to do this in Stata or use a 
> different approach to represent the heterogeneity in a 3-level data structure 
> (occasions nested in patients, and patients nested in providers).
> 
> *
> *   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