This is an R Markdown document that shows the Europen capitals location as a fullfillment of Coursera test. Usefull to test of geografic knowledge too…

df <- data.frame(
                city = c('London', 'Madrid', 'Rome', 'Paris','Berlin','Copenhagen','Brussels','Bern','Athens','Dublin'),
                lng = c(-0.083333, -3.683333, 12.483333, 2.333333, 13.404954,12.56553,4.34878,7.44744,23.71622,-6.24889),
                lat = c(51.5, 40.4, 41.9, 48.86666667, 52.520008,55.67594,50.85045,46.94809,37.97945,53.33306)
                )
df$text <- with(df, paste("<b>", city, "</b>"))
head(df)
##         city       lng      lat                text
## 1     London -0.083333 51.50000     <b> London </b>
## 2     Madrid -3.683333 40.40000     <b> Madrid </b>
## 3       Rome 12.483333 41.90000       <b> Rome </b>
## 4      Paris  2.333333 48.86667      <b> Paris </b>
## 5     Berlin 13.404954 52.52001     <b> Berlin </b>
## 6 Copenhagen 12.565530 55.67594 <b> Copenhagen </b>

Plot Map

Right click on the mark to see the name of the town