Re: [R] Creating a map in R using ACS PUMS data

2013-09-12 Thread Anthony Damico
the smallest boundary in the 1-year acs files is public use microdata area
(puma), but the 3- and 5-year public use microdata samples (pums) go down
to some counties, i believe..

http://www.census.gov/acs/www/guidance_for_data_users/estimates/



i think you just need to download the census bureau's shapefiles for the
geography you want to map

http://www.census.gov/geo/maps-data/data/tiger-line.html



at the point you have a shapefile and you have created the data that you
actually want to map, maybe start exploring your mapping options in R here--

http://flowingdata.com/category/visualization/mapping/



there's lots of people working with the ACS in R

http://www.asdfree.com/search/label/american%20community%20survey%20%28acs%29

http://cran.r-project.org/web/packages/UScensus2010/UScensus2010.pdf

http://cran.r-project.org/web/packages/acs/acs.pdf






On Thu, Sep 12, 2013 at 9:49 AM, Chris Schatschneider wrote:

> Hello all - does anyone know if there is a package in R that will allow me
> to create a map of the US (or individual states) that uses the American
> Community Survey PUMS boundaries?
>
> Thanks
>
> [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Creating a map in R using ACS PUMS data

2013-09-12 Thread Chris Schatschneider
Hello all - does anyone know if there is a package in R that will allow me
to create a map of the US (or individual states) that uses the American
Community Survey PUMS boundaries?

Thanks

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Creating a map with central Asian countries

2011-09-15 Thread Gesmann, Markus
Salaam,

If you would like to display the chart online than the googleVis package might 
be helpful.
The package provides you with an interface to the Google Visualisation API.
Here is an example with a map of the population on the central Asian countries:

library(googleVis)
## googleVis comes with the data set Population

myData <- subset(Population, Country %in% c("Uzbekistan", "Kazakhstan", 
"Tajikistan", "Kyrgyzstan", "Turkmenistan"))

## create a geo chart, using the Google Visualisation API, 
## an internet connection is required to display the chart

plot(gvisGeoChart(myData, locationvar='Country', numvar='Population', 
options=list(region='143')))
 
I hope this helps.

Regards

Markus

-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On 
Behalf Of Barry Rowlingson
Sent: 15 September 2011 09:58
To: Salaam Batur
Cc: r-help@r-project.org
Subject: Re: [R] Creating a map with central Asian countries

On Thu, Sep 15, 2011 at 8:41 AM, Salaam Batur  wrote:
> Dear all,
>
> I am trying to create a map for central asian countries(Kazakhstan, 
> Uzbekstan, Kyrgyzstan, Turkmenstan, and Tajikstan). I tried google for 
> shapefiles and Rdata files of central asia, but I can't seem to find them.
> There is only a world map and individual maps for each countries. If I 
> use individual maps to create this map, how do I put them on a same 
> graphic with different colours? Any ideas?

 If you are reading the country shapefiles (I get mine from
www.gadm.org) into SpatialPolygonsDataFrames with the readShapeSpatial function 
from package:maptools then you could either 'rbind' the five countries into one 
SpatialPolygonsDataFrame or do an empty plot with the lat-long bounds and then 
plot them with 'add=TRUE'. Something like (I've not tested this)

tajikistan = readShapeSpatial("TJK_adm0.shp")
plot(0,xlim=c(64,78),ylim=c(35,42))   # maybe other options for axis
and labels here
plot(tajikistan,add=TRUE)

 Any problems with maps, shapefiles etc are probably best asked on r-sig-geo 
mailing list, or www.stackoverflow.com with an R tag...

Barry

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
**
The information in this E-Mail and in any attachments is...{{dropped:27}}

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Creating a map with central Asian countries

2011-09-15 Thread Barry Rowlingson
On Thu, Sep 15, 2011 at 8:41 AM, Salaam Batur  wrote:
> Dear all,
>
> I am trying to create a map for central asian countries(Kazakhstan,
> Uzbekstan, Kyrgyzstan, Turkmenstan, and Tajikstan). I tried google for
> shapefiles and Rdata files of central asia, but I can't seem to find them.
> There is only a world map and individual maps for each countries. If I use
> individual maps to create this map, how do I put them on a same graphic with
> different colours? Any ideas?

 If you are reading the country shapefiles (I get mine from
www.gadm.org) into SpatialPolygonsDataFrames with the readShapeSpatial
function from package:maptools then you could either 'rbind' the five
countries into one SpatialPolygonsDataFrame or do an empty plot with
the lat-long bounds and then plot them with 'add=TRUE'. Something like
(I've not tested this)

tajikistan = readShapeSpatial("TJK_adm0.shp")
plot(0,xlim=c(64,78),ylim=c(35,42))   # maybe other options for axis
and labels here
plot(tajikistan,add=TRUE)

 Any problems with maps, shapefiles etc are probably best asked on
r-sig-geo mailing list, or www.stackoverflow.com with an R tag...

Barry

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Creating a map with central Asian countries

2011-09-15 Thread Salaam Batur
Dear all,

I am trying to create a map for central asian countries(Kazakhstan,
Uzbekstan, Kyrgyzstan, Turkmenstan, and Tajikstan). I tried google for
shapefiles and Rdata files of central asia, but I can't seem to find them.
There is only a world map and individual maps for each countries. If I use
individual maps to create this map, how do I put them on a same graphic with
different colours? Any ideas?


Thanks in advance!

Batur

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Creating a map for central asia countries

2011-09-14 Thread Batur
Dear all,

I am trying to create a map for central asian countries(Kazakhstan,
Uzbekstan, Kyrgyzstan, Turkmenstan, and Tajikstan). I tried google for
shapefiles and Rdata files of central asia, but I can't seem to find them.
There is only a world map and individual maps for each countries. If I use
individual maps to create this map, how do I put them on a same graphic with
different colour? Any ideas?

--
View this message in context: 
http://r.789695.n4.nabble.com/Creating-a-map-for-central-asia-countries-tp3814576p3814576.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Creating a map .

2010-07-26 Thread 500600

raster package may be what you're looking for.
-- 
View this message in context: 
http://r.789695.n4.nabble.com/Creating-a-map-tp2301972p2302053.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Creating a map .

2010-07-26 Thread Alaios
Hello.
I would try to explain what I would like to implement so to suggest me what to 
try out.

I would like to create an area of X*X  km that would be used to "Simulate" an 
area map (eg. city's area, suburban area). 

-X would be a parameter so I do not want it to be fixed
-In this map I would like to place users (people), thus I do not know in 
advance 
if in one place there would be one,two, or more users..
-I would also like to not have fixed resolution in my map and specify it as a 
parameter during run-time. In my X*X area I would like sometimes to have 
resolution of 1Km and others resolution of 10 meters. As resolution increases 
(1 
km->100m->10m) less users would be found in the same "place".
-In every "place" I would like to specify some parameters (eg. number of users, 
characteristics of users, energy consumption per user). I do not know in 
advance 
how much data I would need per user. Ofc 10 parameters per place might be ok 
but 
a not fixed approach is better.

My first thoughts were to use an array and actually define an array of X*X 
dimension where X is defined at run time as parameter. The problem with this 
approach is that I do not have variable resolution in this area as I have the 
constant number of X*X places only. Also one more problem is that the cels of 
the array (where cell is used to simulate "place") can not be used to story 
many 
parameters but only a single numerical value).

What do you suggest me to try looking at and what made up your decision?

I would like to thank everyone that reached to this point reading all my big 
text.

Best Regards
Alex.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] creating a map

2009-02-17 Thread Greg Snow
It should be in the datasets package that is automatically loaded with R (at 
least my copy), try ?state and you should see the help for it and others.

--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.s...@imail.org
801.408.8111

From: Alina Sheyman [mailto:alina...@gmail.com]
Sent: Tuesday, February 17, 2009 11:02 AM
To: Greg Snow
Cc: r-help@r-project.org
Subject: Re: [R] creating a map

Thanks Greg,
  do you know where i can find the sate.center dataset that you mention?
On Tue, Feb 17, 2009 at 12:28 PM, Greg Snow 
mailto:greg.s...@imail.org>> wrote:
You need to give the symbols function the locations where you want the centers 
of the circles to be.  Some datesets with map information also have centers of 
the states that you can use, for the USA, there is the state.center dataset 
that may work for you, or the maptools package function get.Pcent will compute 
a center for polygons (there are probably other similar functions in other 
packages).

For adding circles to a map of the USA, you may want to look at the state.vbm 
data in the TeachingDemos package (works with maptools package), but you will 
need to computer the centers of the polygons, they don't match state.center or 
others.

Hope this helps,

--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.s...@imail.org<mailto:greg.s...@imail.org>
801.408.8111


> -Original Message-
> From: r-help-boun...@r-project.org<mailto:r-help-boun...@r-project.org> 
> [mailto:r-help-boun...@r-<mailto:r-help-boun...@r->
> project.org<http://project.org>] On Behalf Of Alina Sheyman
> Sent: Tuesday, February 17, 2009 9:53 AM
> To: r-help@r-project.org<mailto:r-help@r-project.org>
> Subject: [R] creating a map
>
> I'm trying to create a fairly basic map using R. What i want to get is
> the
> map of the country with circles representing a count of students in
> each
> state.
> What I've done so far is as following -
>   map("state")
>
> symbols(data1$count,circles=log(data1$count)*3,fg=col,bg=col,add=T,inch
> es=F)
>
> this gives me the map of the country, but one that's not populated by
> my
> counts.
> Does anyone know what I'm doing wrong?
>
> Also, if anyone can recommend a good reference for creating maps in R,
> I'd
> really appreciate that.
>
> thank you
>
>   [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org<mailto:R-help@r-project.org> mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-
> guide.html
> and provide commented, minimal, self-contained, reproducible code.


[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] creating a map

2009-02-17 Thread Alina Sheyman
Thanks Greg,
  do you know where i can find the sate.center dataset that you mention?

On Tue, Feb 17, 2009 at 12:28 PM, Greg Snow  wrote:

> You need to give the symbols function the locations where you want the
> centers of the circles to be.  Some datesets with map information also have
> centers of the states that you can use, for the USA, there is the
> state.center dataset that may work for you, or the maptools package function
> get.Pcent will compute a center for polygons (there are probably other
> similar functions in other packages).
>
> For adding circles to a map of the USA, you may want to look at the
> state.vbm data in the TeachingDemos package (works with maptools package),
> but you will need to computer the centers of the polygons, they don't match
> state.center or others.
>
> Hope this helps,
>
> --
> Gregory (Greg) L. Snow Ph.D.
> Statistical Data Center
> Intermountain Healthcare
> greg.s...@imail.org
> 801.408.8111
>
>
> > -Original Message-
> > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
> > project.org] On Behalf Of Alina Sheyman
> > Sent: Tuesday, February 17, 2009 9:53 AM
> > To: r-help@r-project.org
> > Subject: [R] creating a map
> >
> > I'm trying to create a fairly basic map using R. What i want to get is
> > the
> > map of the country with circles representing a count of students in
> > each
> > state.
> > What I've done so far is as following -
> >   map("state")
> >
> > symbols(data1$count,circles=log(data1$count)*3,fg=col,bg=col,add=T,inch
> > es=F)
> >
> > this gives me the map of the country, but one that's not populated by
> > my
> > counts.
> > Does anyone know what I'm doing wrong?
> >
> > Also, if anyone can recommend a good reference for creating maps in R,
> > I'd
> > really appreciate that.
> >
> > thank you
> >
> >   [[alternative HTML version deleted]]
> >
> > __
> > R-help@r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide http://www.R-project.org/posting-
> > guide.html
> > and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] creating a map

2009-02-17 Thread Greg Snow
You need to give the symbols function the locations where you want the centers 
of the circles to be.  Some datesets with map information also have centers of 
the states that you can use, for the USA, there is the state.center dataset 
that may work for you, or the maptools package function get.Pcent will compute 
a center for polygons (there are probably other similar functions in other 
packages).

For adding circles to a map of the USA, you may want to look at the state.vbm 
data in the TeachingDemos package (works with maptools package), but you will 
need to computer the centers of the polygons, they don't match state.center or 
others.

Hope this helps,

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.s...@imail.org
801.408.8111


> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
> project.org] On Behalf Of Alina Sheyman
> Sent: Tuesday, February 17, 2009 9:53 AM
> To: r-help@r-project.org
> Subject: [R] creating a map
> 
> I'm trying to create a fairly basic map using R. What i want to get is
> the
> map of the country with circles representing a count of students in
> each
> state.
> What I've done so far is as following -
>   map("state")
> 
> symbols(data1$count,circles=log(data1$count)*3,fg=col,bg=col,add=T,inch
> es=F)
> 
> this gives me the map of the country, but one that's not populated by
> my
> counts.
> Does anyone know what I'm doing wrong?
> 
> Also, if anyone can recommend a good reference for creating maps in R,
> I'd
> really appreciate that.
> 
> thank you
> 
>   [[alternative HTML version deleted]]
> 
> __
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-
> guide.html
> and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] creating a map

2009-02-17 Thread David Winsemius

Two places that have worked examples leap to mind:

--- Sarkar's online accompaniment to his book:
http://lmdvr.r-forge.r-project.org/figures/figures.html
Thumbing through the hard copy I see Figure 6.5 might of interest.

--- Addicted to R's graphics gallery:
http://addictedtor.free.fr/graphiques/search.php?q=map&engine=RGG

--  
David Winsemius


On Feb 17, 2009, at 11:53 AM, Alina Sheyman wrote:

I'm trying to create a fairly basic map using R. What i want to get  
is the
map of the country with circles representing a count of students in  
each

state.
What I've done so far is as following -
 map("state")
symbols 
(data1$count,circles=log(data1$count)*3,fg=col,bg=col,add=T,inches=F)


this gives me the map of the country, but one that's not populated  
by my

counts.
Does anyone know what I'm doing wrong?

Also, if anyone can recommend a good reference for creating maps in  
R, I'd

really appreciate that.

thank you

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] creating a map

2009-02-17 Thread Alina Sheyman
I'm trying to create a fairly basic map using R. What i want to get is the
map of the country with circles representing a count of students in each
state.
What I've done so far is as following -
  map("state")
 symbols(data1$count,circles=log(data1$count)*3,fg=col,bg=col,add=T,inches=F)

this gives me the map of the country, but one that's not populated by my
counts.
Does anyone know what I'm doing wrong?

Also, if anyone can recommend a good reference for creating maps in R, I'd
really appreciate that.

thank you

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.