Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: RE: Labeling above the dot in -scatter-


From   Nick Winter <njgwinter@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: Labeling above the dot in -scatter-
Date   Tue, 31 Jul 2012 11:14:03 -0400

This generates a graph that shows how the labels are arrayed for each clock position:

clear
set obs 12
gen pos = _n
gen y = 1 + (_n>6)
gen x = mod(_n-1,6)+1
gen label = "Label"

scatter y x , ///
  mlab(lab) mlabv(pos) msym(Oh) msize(huge) ///
  || scatter y x, mlab(pos) mlabpos(0) ///
  msym(none) legend(off) ///
  ysca(ra(.5 2.5)) xsca(ra(.5 6.5)) ///
  ysca(off) xsca(off)



Nick Winter

On 7/31/2012 10:41 AM, Augusto Cadenas wrote:
If I change -mlabposition(12)- to -mlabposition(1)- I think I get what you are describing. It looks like -mlabposition- uses the bottom of the words as the position reference rather than the middle of the words.
Thanks, Lance, I think this is a good solution. Still, I don't
understand the logic behind where -mlabposition- places the string.
Does it look at the beginning, the middle, or the end of the string?
Why do -mlabposition(12)- and -mlabposition(1)- yield such different
results? I wonder.

Best, Augusto

On Tue, Jul 31, 2012 at 12:00 AM, Lance Erickson <lance_erickson@byu.edu> wrote:
Augusto,

If I change -mlabposition(12)- to -mlabposition(1)- I think I get what you are describing. It looks like -mlabposition- uses the bottom of the words as the position reference rather than the middle of the words.

Best,
Lance
*
*   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/

*
*   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   |   Site index