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: graphs - applying different symbols to different groups within one var
From
Nick Cox <[email protected]>
To
"'[email protected]'" <[email protected]>
Subject
st: RE: graphs - applying different symbols to different groups within one var
Date
Wed, 17 Nov 2010 13:22:44 +0000
I don't think there is any such option in -scoreplot-. -scoreplot- is a convenience command, but it can't encompass even all the reasonable things people might want to do in plotting scores.
I think you'll have to -predict- the scores for yourselves and call up -twoway- commands directly. Technique for separating points according to groups is discussed in
SJ-5-4 gr0023 . . . . Stata tip 27: Classifying data points on scatter plots
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . N. J. Cox
Q4/05 SJ 5(4):604--606 (no commands)
tips for using separate, gray-scale gradation, and text
characters as class symbols to classify data points on
a scatter plot
Nick
[email protected]
Angela Fearon
I have undertaken a canonical analysis of some variables, with a group
.candisc sewaist sehip segt sebmi sew2h sew2gt std_elatact std_elsgt std_elgt std_eaiis, group(group4)
and then graphed this
. scoreplot, mlabel(group4) yline(0) xline(0)
the var group4 is made up of people divided into four groups (surprisingly enough). I would like to be able to either colour each group of people, or provide them with different symbols, on the graph. I have done this mannually, but think there must be some code or menu item that would allow me to automate this function - I have failed to find this information on the net, in help, or in my graphing in stata book.
*
* 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/