Mapa

Row

LUGARES TURISTICOS A LOS QUE VIAJARÉ EN UN FUTURO

Row

Descripción del mapa

Los diferentes puntos del mapa, son lugares a los que me gustaria viajar mientras transcurre mi carrera de economía.

Row

Referencias

  1. Referencia uno

  2. Referencia dos

  3. Referencia tres

---
title: LUGARES A DONDE ME GUSTARÍA VIAJAR 
author: Nataly Méndez 
output: 
  flexdashboard::flex_dashboard:
    orientation: rows
    vertical_layout: scroll
    fig_mobile: TRUE
    theme: cosmo
    social: menu
    source_code: embed
    navbar:
      - {title: "Crea tu propio mapa", href: "https://rstudio.cloud/project/2897129", align: right, icon: fa-map-marker}
      - {title: "INAE V, Economía UNAM", href: "http://www.economia.unam.mx/", align: right, icon: fa-school}
---

```{r global, include=FALSE}
library(leaflet)
library(leaflet.extras)
```

Mapa {data-icon="fa-map"}
=====================================

Row
-----------------------------------------------------------------------

### LUGARES TURISTICOS A LOS QUE VIAJARÉ EN UN FUTURO

```{r}
### Registramos la información de los lugares
lugar1 <- c(Nombre = "Catedral de Guadalajara", Giro = "Turistico", longitud = -107.3, latitud = 24.8)
lugar2 <- c(Nombre = "Oaxaca", Giro = "Turistico", longitud = -96.7, latitud = 17.0)
lugar3 <- c(Nombre = "Caribe, Cancún", Giro = "Turistico", longitud = -86.7, latitud = 21.1)
lugar4 <- c(Nombre = "Cascadas de agua azul", Giro = "Turistico", longitud = -91.8, latitud = 16.3)
lugar5 <- c(Nombre = "Palacio de Bellas Artes", Giro = "Turistico", longitud = -99.1, latitud = 19.4)
lugar6 <- c(Nombre = "Pozas de Xilitla en San Luis Potosí", Giro = "Turistico", longitud =  -98.9, latitud = 21.3)


### Creamos una tabla de datos con la información de los lugares
lugares <- data.frame(rbind(lugar1, lugar2, lugar3, lugar4, lugar5, lugar6))

### Nos aseguramos de que la latitud y longitud sean números
lugares$longitud <- as.numeric(lugares$longitud)
lugares$latitud <- as.numeric(lugares$latitud)

### Creamos el mapa
mapa <- leaflet(lugares) %>% setView(lng = -99.3, lat = 19.4, zoom = 5) %>% addTiles() %>% addMarkers(~longitud, ~latitud, popup = paste(sep = "
", "Nombre:", lugares$Nombre, "Giro:", lugares$Giro)) ### Agregamos el botón de reset y la barra de herramientas de dibujo al mapa mapa %>% addResetMapButton() %>% addDrawToolbar(editOptions = editToolbarOptions(selectedPathOptions = selectedPathOptions())) ### Imprimimos el mapa mapa ``` Row ----------------------------------------------------------------------- ### Descripción del mapa Los diferentes puntos del mapa, son lugares a los que me gustaria viajar mientras transcurre mi carrera de economía. Row ----------------------------------------------------------------------- ### Referencias 1. Referencia uno 2. Referencia dos 3. Referencia tres