[R] Mapping of countries

ani jaya g@@@uu| @end|ng |rom gm@||@com
Wed Apr 1 02:54:27 CEST 2020


Maybe simply add:


points(station$Lon, station$Lat, col="red", pch=16, label="Your Country")
text(station$Lon, station$Lat,"Your Country",
     col="black", pos=3, cex=1)

station$Lon and Lat in your coordinate position.

Regards,
Ani


On Tue, Mar 31, 2020 at 10:58 PM george brida <george.brida using gmail.com> wrote:
>
> Dear Jim,
>
> Is it possible to add also a title to this map?
>
> Many thanks
>
>
>
> On Tue, Mar 31, 2020 at 2:29 PM george brida <george.brida using gmail.com> wrote:
>
> > Dear Jim,
> >
> > Thank you very much. I obtained now the required map. I would like to know
> > how to add the names of the countries.
> >
> > Best
> > George
> >
> > On Tue, Mar 31, 2020 at 10:10 AM Jim Lemon <drjimlemon using gmail.com> wrote:
> >
> >> Hi George,
> >> Try this:
> >>
> >> library(maps)
> >> map("world",xlim=c(34.353,60.369),ylim=c(16.7,32.193),
> >>  regions="Saudi Arabia",col="yellow",fill=TRUE)
> >> map("world",regions="Bahrain",col="yellow",fill=TRUE,add=TRUE)
> >> map("world",regions="Kuwait",col="lightblue",fill=TRUE,add=TRUE)
> >> map("world",regions="Qatar",col="yellow",fill=TRUE,add=TRUE)
> >> map("world",regions="United Arab
> >> Emirates",col="lightblue",fill=TRUE,add=TRUE)
> >> map("world",regions="Oman",col="lightgreen",fill=TRUE,add=TRUE)
> >>
> >> Jim
> >>
> >> On Tue, Mar 31, 2020 at 12:39 PM george brida <george.brida using gmail.com>
> >> wrote:
> >> >
> >> > Dear R users,
> >> >
> >> > i would like to plot the maps of the Gulf Cooperation Council (GCC)
> >> > countries (KSA, Qatar, Bahrain, Kuwait, UAE and Oman) with these
> >> > constraints: i/ KSA , Qatar and Bahrain have the same face color , ii/
> >> > Kuweit and UAE with the same face color and iii/Oman  with another face
> >> > color. Is there any code in R doing this task.
> >> >
> >> > Many thanks.
> >> >
> >> >         [[alternative HTML version deleted]]
> >> >
> >> > ______________________________________________
> >> > R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> >> > 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 using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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