Statalist


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

st: AW: Graph matrix with multiple marker colors


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: Graph matrix with multiple marker colors
Date   Tue, 31 Mar 2009 14:21:58 +0200

<> 

Seems you are out of luck on this one as the -mcolor- option takes a single
argument, not a whole vector of them. You could differentiate with the by
option, though.

*************
sysuse auto, clear
graph matrix price mpg headroom, by(foreign, note("") style(compact))
*************



HTH
Martin

-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Kamyar
Baradaran
Gesendet: Dienstag, 31. März 2009 14:08
An: statalist@hsphsun2.harvard.edu
Betreff: st: Graph matrix with multiple marker colors

All,
Sorry for my basic question.

I need to draw a graph matrix with multiple marker colors. For
example, I want to present males/females by different colors. But the
following does not work:

.graph matrix  x1 x2 x3 x4, mcolor(gendercolor)

I receive:
(note:  named style gendercolor not found in class color, default
attributes used)

How can tell the software that gendercolor is a string variable which
has a color (e.g. black) for males and another for females.

I would appreciate any suggestions.

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


*
*   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   |   What's new   |   Site index