[R] creating a map
David Winsemius
dwinsemius at comcast.net
Tue Feb 17 18:10:12 CET 2009
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 at 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.
More information about the R-help
mailing list