Statalist


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

Re: st: dot plot of each point


From   "Friedrich Huebler" <fhuebler@gmail.com>
To   statalist@hsphsun2.harvard.edu
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 <n.j.cox@durham.ac.uk> 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
> n.j.cox@durham.ac.uk
>
> 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 <fultonb@berkeley.edu>
> 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index