[R] Labeling world map

Ray Brownrigg Ray.Brownrigg at ecs.vuw.ac.nz
Sun Jul 26 02:42:58 CEST 2015



On 24/07/2015 7:37 p.m., sreenath wrote:
> I draw world map using
> library(maptools)
>> library(ggmap)
>> library(mapdata)
>> library(maps)
>> map("world",fill=TRUE,col="White",bg="light
> blue",ylim=c(-60,90),mar=c(0,0,0,0))
>> native <- c("brazil","sao paulo state")
>> nat <-geocode(native)
>> nat.x <- nat$lon
>> nat.y <- nat$lat
>> points(nat.x,nat.y,col="yellow",pch=16)
> How can i put lilte for this map and label points
title("This is a title")
text(nat.x, nat.y, c("A", "B"), col=2)

If this isn't what you want then you need to be more specific.

Ray Brownrigg



More information about the R-help mailing list