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]
Re: st: can I reformat a single marker in a dot graph?
From
Nick Cox <[email protected]>
To
"[email protected]" <[email protected]>
Subject
Re: st: can I reformat a single marker in a dot graph?
Date
Thu, 14 Nov 2013 19:29:35 +0000
Yes. The principle and practice are explained in
SJ-11-3 gr0049 . . . . . . . . . . Stata tip 102: Highlighting specific bars
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . N. J. Cox
Q3/11 SJ 11(3):474--477
tip on highlighting a subset of observations in a bar or
dot chart
Example
sysuse auto
separate mpg, by(mpg == 41) veryshortlabel
graph dot mpg? if foreign, over(make, sort(mpg)) ///
marker(1, ms(Oh)) marker(2, ms(O) mc(red) msize(*2)) ///
legend(off) ytitle("`: var label mpg'")
To get two different representation, you need two variables. That is
much of the purpose of -separate-.
Nick
[email protected]
On 14 November 2013 19:11, Song, Lin <[email protected]> wrote:
> Hi Stata experts,
>
> I produced a dot graph using the following command. There are 48 areas (lines) in the graph.
>
> graph dot percent, over(areacode, sort(id) label(labsize(small)))
>
> Is it possible to reformat a single marker to make it look different (e.g. changing msymbol and mcolor if id==1) from the others?
>
> Thanks.
>
> Lin
>
>
>
>
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/faqs/resources/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/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/