Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: spmap guidance: Two variables resulting in shaded and sized circles centered on lon/lat


From   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: st: spmap guidance: Two variables resulting in shaded and sized circles centered on lon/lat
Date   Mon, 12 Sep 2011 09:32:24 +0100

No Stata graphics program that I know of supports proportional shading
of marker symbol colours. You would need at the -twoway- level to
superimpose different graph calls with different fixed and specified
colours. That has been done elsewhere, e.g. -hmap- (SSC), -zmap-
(SSC), but it sounds as if you want more than selecting from a small
fixed palette and if that is not already supported by -tmap- I see no
way for you to do this without cloning -tmap- and writing extra code.

Specific comment on your -addplot()- experience is difficult because
you give no code, but -addplot()- can only be used to add direct calls
to some -twoway- subcommands. It couldn't be used, e.g., to
superimpose two -tmap- results.

Nick

On Mon, Sep 12, 2011 at 5:54 AM, James Sams <[email protected]> wrote:
> On Sunday, September 11, 2011, Daniel wrote:
>> James, you can use the tmap  "ssc install tmap"
>>
>> tmap propsymbol population, ///
>> x(x) y(y) ///
>> map("Proportional population") ///
>> scolor(yellow)
>
> I'm afraid not. This gets me circles of the size of the population on the
> appropriate location, but does not shade them according to the second variable.
> I've tried getting tmap to work as well with the addplot command, but it didn't
> really work. Perhaps I was using it wrong?  I was also getting random
> unspecified 198 error that I could not track down in the source or with trace.
> Thanks  though.
>
> I should mention that the "area" and "split" options to spmap are close to what
> I want.

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index