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   Daniel Marcelino <[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 00:19:27 -0400

James, you can use the tmap  "ssc install tmap"

tmap propsymbol population, ///
x(x) y(y) ///
map("Proportional population") ///
scolor(yellow)

Best,
Daniel

On Sun, Sep 11, 2011 at 11:40 PM, James Sams <[email protected]> wrote:
>
> I'm trying to use spmap to create a graph where each geographic entity for
> which I have data is represented by a circle centered over its central latitude
> and longitude sized by the population of data I have in that geographic entity
> and shaded according to the magnitude of another variable. So, the data is:
>
> Let's say the dataset to map looks like:
> geo_id (specifically 5 digit county-level fips codes)
> LON
> LAT
> id (generated by shp2dta)
> population
> variable_to_shade_by
>
> The coordinates file is uscoord (also generated by shp2dta) and has variables:
> _ID, _X, and _Y
>
>
> Is spmap the appropriate tool to do this? I don't see how to get the options to
> interact in the appropriate manner. Some pointers in the right direction would
> be much appreciated.
>
>
> --
> James Sams
> [email protected]
> *
> *   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/



--
About me: http://danielmarcelino.zip.net/

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