Statalist


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

Re: st: dot plot of each point


From   "Friedrich Huebler" <[email protected]>
To   [email protected]
Subject   Re: st: dot plot of each point
Date   Mon, 17 Nov 2008 13:13:34 -0500

You can also rescale the graph to create more space for the labels
along the vertical axis.

. graph dot (asis) mpg in 1/50, over(make, label(labsize(*0.7)))
xsize(4) ysize(6)

Friedrich

On Mon, Nov 17, 2008 at 1:03 PM, Nick Cox <[email protected]> wrote:
> Yes. You do need to study the help carefully. The y axis is the response
> axis, here horizontal. Your problematic labels are on the other axis,
> called categorical by Stata.
>
> Here is an analogue of your problem with the auto data:
>
> sysuse auto, clear
> graph dot (asis) mpg in 1/50, over(make, label(labsize(*0.45)))
>
> Nick
> [email protected]
>
> Brent Fulton
>
> Thanks, Friedrich, I didn't see the -over- option originally. This
> worked,
> but the state abbreviation labels on the y-axis are too large. I've
> tried
> ylabel and mlabel but both give errors (see below). Do you have any
> recommendations here?
>
> graph dot men women children, over(state) ylabel(labsize(vsmall))
> error: invalid label specifier, :  labsize(vsmall):
>
> graph dot men women children, over(state) mlabel(labsize(vsmall))
> error: option mlabel() not allowed
>
> Friedrich Huebler
>
> See -help graph dot-.
>
> On Mon, Nov 17, 2008 at 11:13 AM, Brent Fulton <[email protected]>
> wrote:
>
>> I would like to plot 4 points for each of the 50 states, where a state
> will
>> be labeled with its two-letter abbreviation. I would like to orient
> the
>> graph so the states are on the vertical axis and the points are
> plotted on
>> the horizontal axis. (I prefer to just plot points, not bars, because
> the
>> graph gets too busy.)
>>
>> I would appreciate your advice on how to do this.
*
*   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