I have been asked to create an interactive file with this Pharmacies GISC101 - Google Sheets csv file.
I am currently having trouble as I am new to R.
My current code is :
pharmacies <- read.csv("Pharmacies_Chch.csv") # read csv file
geocode_OSM(pharmacies$Address) # geocoding addresses
pharmacies_ee <- geocode_OSM(pharmacies$Address, projection = 2193, as.sf = T)
pharmacies_sf <- st_as_sf(pharmacies_ee, coords = c("Lon", "Lat"), crs = 4326)
tmap_mode("view") # setting the environment for interactive plots
I am currently having trouble initating the map as I amunsure what to , any help would be greatly appreciated.