select * from city
Displaying records 1 - 20
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
3 Herat AFG Herat 186800
4 Mazar-e-Sharif AFG Balkh 127800
5 Amsterdam NLD Noord-Holland 731200
6 Rotterdam NLD Zuid-Holland 593321
7 Haag NLD Zuid-Holland 440900
8 Utrecht NLD Utrecht 234323
9 Eindhoven NLD Noord-Brabant 201843
10 Tilburg NLD Noord-Brabant 193238
11 Groningen NLD Groningen 172701
12 Breda NLD Noord-Brabant 160398
13 Apeldoorn NLD Gelderland 153491
14 Nijmegen NLD Gelderland 152463
15 Enschede NLD Overijssel 149544
16 Haarlem NLD Noord-Holland 148772
17 Almere NLD Flevoland 142465
18 Arnhem NLD Gelderland 138020
19 Zaanstad NLD Noord-Holland 135621
20 ´s-Hertogenbosch NLD Noord-Brabant 129170

---
title: "Bar Charts"
date: "`r Sys.Date()`"
output:
  flexdashboard::flex_dashboard:
    orientation: columns
    vertical_layout: fill
    theme: journal
    social: ['facebook','twitter','linkedin','pinterest']
    source: embed
---

```{r setup, include=FALSE}
library(flexdashboard)

library(RMySQL)

library(leaflet)

library(leafem)

library(fontawesome)

city_table <- dbConnect(RMySQL::MySQL(),dbname='world',username='root',password='Limitless1978',host='localhost',port=3306)

knitr::opts_chunk$set(echo = TRUE,connection="city_table")
```

##


###

```{sql connection=city_table,max.print=20}

select * from city

```



##

###

```{r mapa, echo=FALSE}
# Múltiples Marcadores

cent_hist <- data.frame(lugar=c("Iglesia Nuestra Señora de La Merced","Convento Regina Angelorum","Puerta de la Misericordia"),latitud=c(18.47416921486365,18.471116404923126,18.468775880481004),    longitud=c(-69.88824745014279,-69.8871531089362,-69.89011426748678),               color=c("orange","blue","purple"))


centro_historico <- leaflet(data=cent_hist) %>% 

addTiles() %>%  

addMarkers(lat=~latitud,lng=~longitud) %>% 

addCircleMarkers(lat=~latitud,lng=~longitud,color=~color,radius=30)

centro_historico
```