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: Customising marker options using 'aaplot'
From
River Tam <[email protected]>
To
[email protected]
Subject
st: Customising marker options using 'aaplot'
Date
Fri, 22 Nov 2013 15:35:00 -0500
Hello Statalist,
I have panel data for carbon dioxide emissions (co2emit) and income
(gdp) for all countries. The variable 'categ' has a value of 1, 2 or 3
depending on whether the country is low, middle or high income,
respectively. Previously, I used the following to obtain a scatter
plot and linear fit line with separate marker colours for low, middle
and high income countries:
separate co2emit, by(categ)
twoway (scatter co2emit1-co2emit3 gdp) || lfit co2emit gdp
I'm unable to figure out the syntax to obtain a similar result using
aaplot, i.e. so that linear fit line and its equation (representing
the complete set 'co2emit') is displayed and the three income groups
are distinguishable, and would appreciate your guidance.
Thanks very much in advance for your help,
River Tam
*
* 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/