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 on April 23, and its replacement, statalist.org is already up and running.


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

RE: st: how to highlight specific scatters in -graph matrix-?


From   "Impavido, Gregorio" <GImpavido@imf.org>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   RE: st: how to highlight specific scatters in -graph matrix-?
Date   Thu, 30 Aug 2012 14:14:05 -0400

Nick, thank you. This is clever!

However I believe your suggestion applies to all three scatters (price weight), (price mpg) and (weight mpg) above and below the diagonal at the same time.  Say I want to highlight only the intersection (price weight) and its correspondent (weight price) for the reader. I cannot quite figure out how to use -cond()- to do that.

 
-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Nick Cox
Sent: Thursday, August 30, 2012 1:48 PM
To: statalist@hsphsun2.harvard.edu
Subject: Re: st: how to highlight specific scatters in -graph matrix-?

This is just to emphasise that nothing restricts you to two distinct
characters.

Nick

On Thu, Aug 30, 2012 at 6:37 PM, Nick Cox <njcoxstata@gmail.com> wrote:
> The only trick I know here is
>
> sysuse auto, clear
> graph matrix price weight mpg
> gen show = cond(foreign, "O", ".")
> graph matrix price weight mpg, ms(none) mla(show) mlabpos(0)
>
> You have scope to show any printable characters.
>
> replace show = cond(foreign, "O", "+")
>
> works quite well too for this example.
>
> Nick
>
> On Thu, Aug 30, 2012 at 6:28 PM, Impavido, Gregorio <GImpavido@imf.org> wrote:
>
>> After reading -help graph matrix- and few web searches, I was unable to find an answer. I would like to highlight a specifc scatter (or more than one) in -graph matrix-. The option -text(#y #x "text")- does not appear to work. The option -msymbol()- applies symultaneously to all scatters. I presume I could go the longer route of -graph combine- but I would use it as a last option. Any suggestion?

*
*   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   |   Site index