Bookmark and Share

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: Change median plusmarkers in dotplot to median line


From   "Heiligenberg, Marlies" <[email protected]>
To   <[email protected]>
Subject   RE: st: Change median plusmarkers in dotplot to median line
Date   Tue, 18 Oct 2011 14:58:52 +0200

Thanks Nick. I've tried the syntax you wrote but STATA does not recognize 'stripplot' command. i have Stata 11.1



unrecognized command:  stripplot
r(199);



-----Oorspronkelijk bericht-----
Van: [email protected] [mailto:[email protected]] Namens Nick Cox
Verzonden: dinsdag 18 oktober 2011 14:41
Aan: [email protected]
Onderwerp: Re: st: Change median plusmarkers in dotplot to median line

This answer won't help. The median markers are marker symbols, so changing the symbol will not produce a straight line,

I don't think you can do this with -dotplot- short of cloning the program and changing the code.

-stripplot- (SSC) can get closer to what you want. You can look at its
-box- option.

This example shows other possibilities, but you would need to write some ad hoc extra code in the same style for your problem.

sysuse auto, clear

egen median = median(mpg) , by(foreign)

gen x1 = 0
gen x2 = 0.8
gen x3 = 1
gen x4 = 1.8

stripplot mpg, over(foreign) vertical stack /// addplot(rspike x1 x2 median if !foreign, horizontal || /// rspike x3 x4 median if foreign, horizontal)

Nick

On Tue, Oct 18, 2011 at 1:19 PM, Muhammad Anees <[email protected]> wrote:

> check from help file of -dotplot- the option -mstyle-
>
> On Tue, Oct 18, 2011 at 5:13 PM, Heiligenberg, Marlies 
> <[email protected]> wrote:

>> How do I change the median ++++++ markers in a dotplot to a median line (straight long line _____________)?
>> The syntax is used to create the dotplot was:
>>
>> dotplot il1b,  median recast(scatter) over(groep) title("il1ß", box) 
>> msize(tiny) msymbol(circle)
>>

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


***********************************************
Op dit bericht is een disclaimer van toepassing.
Ga naar www.amsterdam.nl/emaildisclaimerbestuursdienst voor meer informatie.



*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index