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]

st: RE: two scatter plots overlay


From   Timothy Mak <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: RE: two scatter plots overlay
Date   Mon, 16 Sep 2013 10:23:42 +0800

-help twoway-

HTH
Tim

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Sun, Wensheng
Sent: 14 September 2013 07:23
To: [email protected]
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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index