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: Fwd: SPMAP: Maps with spmap overlapping pies or bars
From
Maurizio Pisati <[email protected]>
To
[email protected]
Subject
Re: st: Fwd: SPMAP: Maps with spmap overlapping pies or bars
Date
Fri, 24 Sep 2010 18:00:12 +0200
Yes, it is, you just need to combine the two maps. Here's a basic version of what you're looking for:
use "Italy-RegionsData.dta", clear
spmap relig1 using "Italy-RegionsCoordinates.dta", id(id) ///
clnumber(5) fcolor(Reds2) ocolor(none ..) ///
title("Pct. Catholics without reservations", size(*0.8)) ///
subtitle("Italy, 1994-98" " ", size(*0.8)) ///
legstyle(3) ///
diagram(variable(relig1) range(0 100) refweight(pop98) ///
xcoord(xcoord) ycoord(ycoord) fcolor(red))
Within its limitations, -spmap- is a very flexible program. Unfortunately, its syntax is somewhat cumbersome and one needs to read carefully the help file to exploit all its potentialities.
Best wishes,
Maurizio
Il giorno 24/set/2010, alle ore 16.35, Eduard Bopo ha scritto:
> Thanks for your prompt reply. I didn't express my question
> adequately, let me try it in a different way.
> Is it possible to produce only 1 map that shows information on two
> variables? For example, is it possible to combine the following two
> maps into one?
>
> use "Italy-RegionsData.dta", clear
> spmap relig1 using "Italy-RegionsCoordinates.dta", id(id) ///
> clnumber(5) fcolor(Reds2) ocolor(none ..) ///
> title("Pct. Catholics without reservations", size(*0.8)) ///
> subtitle("Italy, 1994-98" " ", size(*0.8)) ///
> legstyle(3))
>
> use "Italy-RegionsData.dta", clear
> spmap using "Italy-RegionsCoordinates.dta", id(id) fcolor(stone) ///
> title("Pct. Catholics without reservations", size(*0.8)) ///
> subtitle("Italy, 1994-98" " ", size(*0.8)) ///
> diagram(variable(relig1) range(0 100) refweight(pop98) ///
> xcoord(xcoord) ycoord(ycoord) fcolor(red))
>
>
> Thanks.
>
> Eduard Bonet
>
> 2010/9/24 Maurizio Pisati <[email protected]>:
>> Yes, it is (with some limitations). Examples can be found in the -spmap- help file.
>> Best wishes,
>> Maurizio
>>
>>
>>
>>
>> Il giorno 24/set/2010, alle ore 10.39, Eduard Bopo ha scritto:
>>
>>> Hello.
>>>
>>> I would like to know if it is possible to use spmap to produce a map that
>>> has bar or pie graphs within each polygon, the polygons being subnational
>>> territorial divisions.
>>>
>>> Any comment might help.
>>>
>>> Thanks in advance.
>>>
>>> Eduard Bonet.
>>> *
>>> * 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/
>>
>>
>> *
>> * 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/
>>
>
> *
> * 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/
*
* 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/