I am new to R programming, I have a csv/excel file of 20 towns in a country which contains the in the below format,
Towns UTM Cordinates UTM Cordinaetes
xxxxxxxx 1377777 249514
yyyyyyyy 142145 228942
I am unable to plot them into a map, Does anyone have any idea of how t plot these UTM Cordinates. Is it possible to plot towns in R programming with UTM? If so can anyone help me out here. I have the shape file for the country with me as well. But I am not sure how to process.
myfilepath <- file.choose()
Cordinates<-read.csv(myfilepath,header=TRUE)
Cordinates
str(Cordinates)
library(rgdal)
library(sp)
library(data.table)
library(ggplot2)
library(tibble)
myfilepath <- file.choose()
Shapefile<-readOGR(myfilepath)
plot(Shapefile)
ggmap(Shapefile)+geom_point(aes(x=Easting,y=Northing,col=Cordinates))
Any help would be appreciated.
