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

From |
"Martin Weiss" <martin.weiss1@gmx.de> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
AW: st: AW: Gap between lines in dot plot |

Date |
Mon, 2 Nov 2009 22:49:33 +0100 |

<> Well, my example did move the lines closer, as requested in your initial post... What, if not the effect of the -linegap()-, do you want to happen? HTH Martin -----Ursprüngliche Nachricht----- Von: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Friedrich Huebler Gesendet: Montag, 2. November 2009 20:35 An: statalist@hsphsun2.harvard.edu Betreff: Re: st: AW: Gap between lines in dot plot Thank you, Martin. Your sequence of commands is a substitute for the linegap() option. . sysuse auto . graph dot mpg turn, over(rep78) linegap(25) I am interested in the gap() suboption for use with over(). The help file describes this option as follows: "gap(#) and gap(*#) specify the gap between the lines in this over() group. gap(#) is specified in percentage-of-bar-width units. Just remember that gap(50) is a considerable, but not excessive width. gap(*#) allows modifying the default gap. gap(*1.2) would increase the gap by 20%, and gap(*.8) would decrease the gap by 20%." In the example from my initial post, the gap() option has no effect on the appearance of the graph. . sysuse auto . graph dot mpg turn, over(rep78) name(dot1) . graph dot mpg turn, over(rep78, gap(*.5)) name(dot2) Friedrich On Mon, Nov 2, 2009 at 12:19 PM, Martin Weiss <martin.weiss1@gmx.de> wrote: > > <> > > > > ************* > sysuse auto, clear > graph dot mpg turn, over(rep78) name(dot1, replace) > gr_edit plotregion1.GraphEdit, cmd(_set_graphstyle_remake gap neg75pct) > ************* > > > > HTH > Martin > > > -----Ursprüngliche Nachricht----- > Von: owner-statalist@hsphsun2.harvard.edu > [mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Friedrich > Huebler > Gesendet: Montag, 2. November 2009 18:05 > An: statalist@hsphsun2.harvard.edu > Betreff: st: Gap between lines in dot plot > > How can the lines in a dot plot with over() be moved closer together? > The gap() option has no effect. > > . sysuse auto > . graph dot mpg turn, over(rep78) name(dot1) > . graph dot mpg turn, over(rep78, gap(*.5)) name(dot2) > > I expected the lines in the second graph to be closer together but > both graphs look the same. > > Friedrich * * 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/

**References**:**st: Gap between lines in dot plot***From:*Friedrich Huebler <fhuebler@gmail.com>

**Re: st: AW: Gap between lines in dot plot***From:*Friedrich Huebler <fhuebler@gmail.com>

- Prev by Date:
**st: AW: loop question** - Next by Date:
**st: Question regarding -asclogit-** - Previous by thread:
**Re: st: AW: Gap between lines in dot plot** - Next by thread:
**st: Marginal effects in mvrs** - Index(es):

© Copyright 1996–2017 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |