Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Timothy Mak <tshmak@hku.hk> |
To | "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |
Subject | st: RE: two scatter plots overlay |
Date | Mon, 16 Sep 2013 10:23:42 +0800 |
-help twoway- HTH Tim -----Original Message----- From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Sun, Wensheng Sent: 14 September 2013 07:23 To: statalist@hsphsun2.harvard.edu Subject: st: two scatter plots overlay Hello, I want to generate a scatter plot with left y-axis as weight_pctile, bottom x-axis as length_pctile, right y-axis as weight, top x-axis as length, with a 45 degree fit-line on weight_pctile and length_pctile. Please help with Stata codes. Thank you very much! . sysuse auto.dta (1978 Automobile Data) . xtile weight_pctile = weight, nquantiles(25) . xtile length_pctile = length, nquantiles(25) Wensheng * * 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/