Statalist


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

RE: st: dot plot of each point


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: dot plot of each point
Date   Mon, 17 Nov 2008 18:03:35 -0000

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