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: two scatter plots overlay


From   "Sun, Wensheng" <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: two scatter plots overlay
Date   Fri, 13 Sep 2013 18:23:10 -0500

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/


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