Re: Bubble maps on R

134 views
Skip to first unread message

Andy South

unread,
Feb 9, 2015, 6:41:27 AM2/9/15
to Shabnam Taheri, rwor...@googlegroups.com
Hi Shabnam,
Thanks for your question.

from ?mapBubbles you should see that :
nameZSize
name of column containing numeric variable to set symbol size

nameZColour
name of column containing variable to set symbol colour

Hopefully the short example below should help. Buuble size is set from population and colour from continent. 

mapBubbles(dF=getMap(), nameZSize="POP_EST", nameZColour="continent")

#use this to look at the columns
str(getMap()@data)

If you have any other questions do ask.

I've also posted this to the rworldmap mailing list, to help others and/or for them to help you.

Best wishes,
Andy



On 8 February 2015 at 17:48, Shabnam Taheri <shabnam...@gmail.com> wrote:
Hello,

 I am a student of evolutionary biology in UPEC university in Paris. I have already used rworldmap package to create maps, but now I need to have a bubblemap for my data. The problem is that I don't understand what nameZSize and nameZColour are and how to write my data for these columns.
Could you please help me?

 Bests regards,

Shabnam TAHERI

lou miao

unread,
Oct 16, 2016, 7:02:49 AM10/16/16
to rworldmap, shabnam...@gmail.com


在 2015年2月9日星期一 UTC+8下午7:41:27,Andy South写道:
Hi Shabnam,
Thanks for your question.

from ?mapBubbles you should see that :
nameZSize
name of column containing numeric variable to set symbol size

nameZColour
name of column containing variable to set symbol colour

Hopefully the short example below should help. Buuble size is set from population and colour from continent. 

mapBubbles(dF=getMap(), nameZSize="POP_EST", nameZColour="continent")

#use this to look at the columns
str(getMap()@data)

If you have any other questions do ask.

I've also posted this to the rworldmap mailing list, to help others and/or for them to help you.

Best wishes,
Andy


lou miao

unread,
Oct 16, 2016, 7:03:05 AM10/16/16
to rworldmap, gvhjn...@qq.com


在 2015年2月9日星期一 UTC+8下午7:41:27,Andy South写道:
Hi Shabnam,
Reply all
Reply to author
Forward
0 new messages