Statalist


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

RE: st: dot plot of each point


From   "Nick Cox" <[email protected]>
To   <[email protected]>
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
[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