[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: -tmap- maps: why only 9 categories?
I see how that would be a problem but I use the -palette(Custom)-
option to specify my own color scheme with 10 different colors.
--- firstname.lastname@example.org wrote:
> Keep in mind that -tmap- calls colorscheme.dta to determine the
> palette and colorscheme.dta only has a maximum of 9 categories for
> each scheme. Of course you could add more colors to each scheme to
> have more than 9 distinct categories.
> With 10 categories are all the regions colored?
> ----- Original Message -----
> From: Friedrich Huebler <email@example.com>
> Date: Wednesday, August 23, 2006 10:17 am
> Subject: st: -tmap- maps: why only 9 categories?
> To: firstname.lastname@example.org
> > Choropleth maps created with -tmap- from SSC are limited to 9
> > categories by default. Quote from the -tmap- help file:
> > specifies the number of classes k in which the variable of
> > quantvar should be divided. This option accepts only numbers
> > 2 and 9."
> > I had to create a map with 10 classes and was able to do so by
> > editing tmap_choropleth.ado in two places.
> > Line 103: change "if r(r) > 9" to "if r(r) > 10"
> > Line 110: change "inrange(`clnumber', 2, 9)" to
> > 2, 10)"
> > I can only think of aesthetic reasons for a limit on the number
> > categories in a map. Is there also a technical reason for the
> > limit of -tmap-? Could raising this limit cause problems with -
> > tmap-
> > or with Stata?
> > Friedrich Huebler
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
* For searches and help try: