[R-sig-Geo] Mapping multiple attributes at once
Mayeul KAUFFMANN
mayeul.kauffmann at jrc.ec.europa.eu
Tue Aug 24 09:59:18 CEST 2010
I you want a more advanced example, you may want to have a look at this US
election map:
http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=113
(source code here: http://www.ai.rug.nl/~hedderik/R/US2004/ )
Mayeul
_____________________________________________________
Dr. Mayeul KAUFFMANN, Conflict Specialist
European Commission, Joint Research Centre (JRC)
Institute for the Protection and Security of the Citizen (IPSC)
Global Security and Crisis Management - ISFEREA
Via E. Fermi 2749 - I-21027 Ispra (VA), ITALY
Phone: (+39) 033278 5071
http://isferea.jrc.ec.europa.eu/Staff/Pages/Kauffmann-Mayeul.aspx
(Office: building 48c, 1st floor, room 123. TP: 483)
-----Original Message-----
From: r-sig-geo-bounces at stat.math.ethz.ch
[mailto:r-sig-geo-bounces at stat.math.ethz.ch] On Behalf Of Robert J. Hijmans
Sent: Monday, August 23, 2010 6:25 PM
To: Thiago Veloso
Cc: r-sig-geo at stat.math.ethz.ch
Subject: Re: [R-sig-Geo] Mapping multiple attributes at once
Dear Thiago,
If you are using (basic) 'plot' you can pass a vector with the
required sizes, i.e. your variable, perhaps after a transformation, as
cex argument. Same approach works for col.
plot(1:10, cex=c(1:5,1:5), col=rep(c('red', 'blue'), each=5), pch=20)
Robert
On Mon, Aug 23, 2010 at 7:26 AM, Thiago Veloso <thi_veloso at yahoo.com.br> wrote:
> Dear SIG colleagues,
> In my present study I need to plot a map containing two different attributes
of some localities. I figured out that a convenient and didactic way would be
via something like bubble plots. For example, the size of the circle would be
proportional to a certain range of values (4 categories) and its inner colors
(also 4 categories) would be proportional to the p-values of a statistical test.
> Is it possible to implement that idea using SIG tools in R? Any suggestions
on how to do it??
> Thanks in advance and best wishes,
> Thiago.
>
>
>
> [[alternative HTML version deleted]]
>
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
>
_______________________________________________
R-sig-Geo mailing list
R-sig-Geo at stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
More information about the R-sig-Geo
mailing list