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

st: RE: -tmap- legend


From   "Scott Merryman" <smerryman@kc.rr.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: -tmap- legend
Date   Mon, 24 Oct 2005 18:37:43 -0500

Here is one way.  If you change line 469 in -tmap_choropleth- from  

forval i = 1 / `NC' {

To

forval i = 2 / `NC' {

it will exclude the first category in the legend.  Of course, don't forget
to change it back.


Scott


Lines 469 - 473:

	forval i = 1 / `NC' {
		local R : word `i' of `RANGE'
		local LABEL `"`LABEL'lab(`i' `"`R'"') "'
		local KEYS `"`KEYS'`i' "'
	}

> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-
> statalist@hsphsun2.harvard.edu] On Behalf Of Friedrich Huebler
> Sent: Monday, October 24, 2005 4:29 PM
> To: statalist@hsphsun2.harvard.edu
> Subject: st: -tmap- legend
> 
> Assume I have a variable with these values:
> 
> 0 No data
> 1 Hot
> 2 Cold
> 
> Now I want to create a map with -tmap- from SSC. By default the
> legend lists all categories of data. Is it possible to show only
> selected categories in the legend, for exampley only "Hot" and
> "Cold"?
> 
> Thank you,
> 
> Friedrich Huebler
>  


*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index