Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: different colour for subgroups in two way scatter graph


From   "Abdul Q Memon" <a.memon@ucl.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   st: different colour for subgroups in two way scatter graph
Date   Mon, 3 Oct 2011 14:16:09 +0100

Hi

I would like to plot a graph in which deviance is y axis and estimated
value is on x-axis. I am doing this by using twoway and scatter commands.

twoway (scatter deviance Estimated value)
twoway (scatter deviance Estimated value), by (police force)


In the first command Is it possible to give different colours to groups of
observation (say by police force) so see which group observations have
high residual by fitted alue.

Kind Regards

Memon




*
*   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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index