<div dir="ltr"><div class="gmail_default" style="font-size:small">​Thank you so much for answering! I have checked the two points that you have mentioned. I actually had library(rworldxtra) in my original, longer code, so I have copied it to this shorter one. However, R still refuses to plot anything on the map. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">About point 2, I am focusing on the Catalan coast with </div><div class="gmail_default" style="font-size:small">xlim=c(.5,3.5),ylim=c(40.5,42.42)</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_default" style="font-size:small">​and it seems that there is no option for "NE Spain", "Catalonia" or anything of the kind. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I enclose the modified code herein.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Best regards,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Jue​</div><br><div class="gmail_quote">On 12 April 2015 at 18:15, Baldwin, Jim -FS <span dir="ltr"><<a href="mailto:jbaldwin@fs.fed.us" target="_blank">jbaldwin@fs.fed.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I think there are two issues:<br>
<br>
1. You need the rworldxtra package to get the countriesHigh dataset so adding in<br>
    library(rworldxtra) is necessary.<br>
2. I think you need to "focus" the figure to a smaller area and add in a statement<br>
    like mapRegion="Somalia" in the mapPies function.<br>
<br>
Jim<br>
<br>
<br>
From: R-sig-Geo [mailto:<a href="mailto:r-sig-geo-bounces@r-project.org" target="_blank">r-sig-geo-bounces@r-project.org</a>] On Behalf Of Jue Lin-Ye<br>
Sent: Sunday, April 12, 2015 8:40 AM<br>
To: <a href="mailto:r-sig-geo@r-project.org" target="_blank">r-sig-geo@r-project.org</a><br>
Subject: [R-sig-Geo] Fwd: Pie charts on a map. v2<br>
<div><div><br>
​<br>
Dear sirs/madams,<br>
<br>
May someone please help me with this issue: I have been trying to plot pie charts on a map, without much success (see code enclosed herein). This is quite distressing to me, as I had plot the same kind of map before without problems. It would be appreciated if anyone would point out the flaw. I enclose a reproducible set of data and codes for you to work with. I have tested the code, you just have to paste the three of the files in the same folder.<br>
<br>
Thank you very much in advance.<br>
​<br>
<br>
--<br>
Jue <br><br>
​<br>
​ P.S.: My e-mails asking for questions are sometimes quite short and can seem rude, I am sorry for that. The truth is that I hearfully appreciate any help of yours. ​<br>
​<br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div dir="ltr"><div><div>Jue </div></div></div></div></div>
</div></div>