Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Nick Cox <n.j.cox@durham.ac.uk> |
To | "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu> |
Subject | RE: st: Change median plusmarkers in dotplot to median line |
Date | Tue, 18 Oct 2011 14:52:04 +0100 |
I flagged -stripplot- as SSC. What SSC means is explained in the Statalist FAQ. It means in your case that you must download -stripplot-, e.g. by using the -ssc- command. Nick n.j.cox@durham.ac.uk Heiligenberg, Marlies 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); Nick Cox 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 <anees@aneconomist.com> wrote: > check from help file of -dotplot- the option -mstyle- > > On Tue, Oct 18, 2011 at 5:13 PM, Heiligenberg, Marlies > <mheiligenberg@ggd.amsterdam.nl> 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/