# Install and load the leaflet package
#install.packages("leaflet")
library(leaflet)
# Define the coordinates for Freiburg and Karlsruhe
<- c(48.0000, 7.8500)
freiburg_coords <- c(49.0081, 8.4038)
karlsruhe_coords
# Create a map
<- leaflet() %>%
mymap addTiles() %>%
addMarkers(lng = freiburg_coords[2], lat = freiburg_coords[1], popup = "Freiburg") %>%
addMarkers(lng = karlsruhe_coords[2], lat = karlsruhe_coords[1], popup = "Karlsruhe") %>%
addPolylines(lng = c(freiburg_coords[2], karlsruhe_coords[2]),
lat = c(freiburg_coords[1], karlsruhe_coords[1]),
color = "blue")
# Display the map
mymap
A testing of AI scripting
test with Andrew Heiss tutorial
testing