Statalist


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

Re: st: AW: Gap between lines in dot plot


From   Friedrich Huebler <[email protected]>
To   [email protected]
Subject   Re: st: AW: Gap between lines in dot plot
Date   Mon, 2 Nov 2009 14:34:56 -0500

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 <[email protected]> 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: [email protected]
> [mailto:[email protected]] Im Auftrag von Friedrich
> Huebler
> Gesendet: Montag, 2. November 2009 18:05
> An: [email protected]
> 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/



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