Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Labeling above the dot in -scatter-
From
Augusto Cadenas <[email protected]>
To
[email protected]
Subject
st: Labeling above the dot in -scatter-
Date
Mon, 30 Jul 2012 23:08:51 +0200
Dear all, in a scatter graph that I'm trying to draw, I would like the
label of each observation to appear with vertical text, exactly above
the dot of the scattergram. Unfortunately, if I choose the option
"mlabposition(12)" (which in principle sounds like what I need) the
text is placed on top of (and not above) the scatter dot, slightly to
the left. To make a concrete example:
*** begin code
sysuse auto
keep in 1/10
twoway scatter mpg weight, mlabel(make) mlabposition(12) mlabangle(vertical)
*** end code
This should nicely visualize the problem. If I choose mlabposition(3)
instead, this looks more like what I would like to get. The text
starts exactly at the dot. Now I would like to have something like
this, only moved 90 degrees counter-clockwise to the "12 o'clock"
position. The text, e.g. "Buick..." should begin right above the dot.
Is it possible to get that?
Thanks, Augusto
*
* 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/