Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

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

From   Nick Cox <>
Subject   Re: st: how to highlight specific scatters in -graph matrix-?
Date   Thu, 30 Aug 2012 18:37:54 +0100

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.


On Thu, Aug 30, 2012 at 6:28 PM, Impavido, Gregorio <> 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:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index