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]

RE: st: Query on graphing


From   "Lythgoe, Dan" <D.Lythgoe@liverpool.ac.uk>
To   "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu>
Subject   RE: st: Query on graphing
Date   Thu, 7 Jun 2012 08:00:06 +0000

Amani, this code should do it, just repeat lines two and three for all of the other years:

clear
input /// 
year xvar
	1979 1
	1984 1
	1989 1
	1994 1
	1999 1
	2004 1
	2009 1
end

tw (line year xvar , c(L) lcolor(gray) lwidth(1)) /// 
	(scatter year xvar if year==2009, c(L) lcolor(gray) lwidth(1) msymbol(O) msize(3) mfcolor(red) mlcolor(black) mlwidth(0.5) /// 
	mlabel(year) mlabposition(9) mlabcolor(black) mlabsize(3)) ///
	, graphregion(color(white)) yscale(reverse)

Regards
Dan

Dan Lythgoe


-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of SIYAM, Amani
Sent: 07 June 2012 08:57
To: statalist@hsphsun2.harvard.edu
Subject: RE: st: Query on graphing

Thanks for your suggestion. I am actually interested in the plot type whether it is doable in Stata rather than the scheme.

Great thanks.

Amani

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Abhimanyu Arora
Sent: 07 June 2012 09:40
To: statalist@hsphsun2.harvard.edu
Subject: Re: st: Query on graphing

You might want to check out the graphing schemes.
There is actually one especially for graphs as in the Economist called -economist-.



On Thu, Jun 7, 2012 at 9:26 AM, SIYAM, Amani <siyama@who.int> wrote:
>
> Dear Statalisters,
>
> I am curious about a graph I saw in The Economist (Figure 2, in the article http://www.economist.com/node/21555927).
>
> Can someone tell me whether it was/can be generated by Stata?
>
> Many thanks in advance.
>
> Amani
>
> *
> *   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/

*
*   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