Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[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 <dmsilv@gmail.com>
To   statalist@hsphsun2.harvard.edu
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 <sams.james@gmail.com> 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
> sams.james@gmail.com
> *
> *   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index