Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Downloading ancillary files "usmaps2" and a note on tmap


From   [email protected]
To   [email protected]
Subject   st: Downloading ancillary files "usmaps2" and a note on tmap
Date   Wed, 26 Jan 2005 15:01:52 -0600

The correct procedure to download ancillary files is -ssc desc usmaps2- then 
-net get usmaps2, replace- (thanks Kit).

An error can be encountered when the difference between minimum and maximum
_X coordinates is large relative to the difference in _Y coordinates.  For 
example, mapping Tennessee will produce the following error: 

. use "D:\DATA\maps\uscounty_fips.dta", clear

. tmap chor population if state == "47", id(_ID) map("D:\DATA\maps\uscounty.dta") /// 
> legbox(lc(black)  margin(medsmall)) legpos(5) legs(1.2) palette(Paired) /// 
> title(`"`"Tennessee Population"'"') subtitle(`"`"Year 2000"'"') /// 
> addplot(label countyname if state == `"`"47"'"', x(longitude) y(latitude))
xsize must be between 1.000 and 20.000
invalid syntax
r(198);


One solution would be change line 526 in -tmap__choropleth- from:

local XS = 4/`RATIO'

to: 

local XS = cond(4/`RATIO' > 20, 20, 4/`RATIO')


Scott


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