Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: tmap label coordinates


From   "Hoetker, Glenn" <[email protected]>
To   <[email protected]>
Subject   st: RE: tmap label coordinates
Date   Thu, 2 Feb 2006 09:58:19 -0600

I encountered this a while ago and can't swear that I'm remembering
correctly.  However, I believe I found that the (approximate, at least)
centroid for a region corresponded to the average value of the x_coord
for that region and the average value of the y_coord for that state.

I hope that's helpful and apologize if I've misremembered and sent you
down a blind alley.

Glenn

Glenn Hoetker
Assistant professor of strategic management
University of Illinois at Urbana-Champaign
[email protected]
217/265-4081

> -----Original Message-----
> From: [email protected] [mailto:owner-
> [email protected]] On Behalf Of Friedrich Huebler
> Sent: Thursday, February 02, 2006 9:30 AM
> To: [email protected]
> Subject: st: tmap label coordinates
> 
> With the -tmap- package from SSC it is possible to create maps in
> Stata. The help file and user's guide show how labels can be added to
> a map, with the example of a map of the United States. To add labels
> it is necessary to specify the x and y coordinates where the labels
> should be placed. The example database us-database.dta contains the
> variables x_coord and y_coord that identify the center of each state.
> Assume that these variables are not present in a database. How could
> I identify the center of each region where I want the labels to be
> placed?
> 
> Thank you,
> 
> Friedrich Huebler
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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