---
title: "Practice_InteractiveMap"
format: html
editor: visual
code-tools: TRUE
---
Map Example
```{r}
library(leaflet)
ll_map <- leaflet()
ll_map <- addTiles(map = ll_map)
ll_map <- setView(map = ll_map, lat = 5.527448, lng = -87.057245,
zoom = 13)
addPopups(map = ll_map, lat = 5.527448, lng = -87.057245, popup = "Isla del Coco")
```
Costa Rica Map
```{r}
library(leaflet)
ll_map <- leaflet()
ll_map <- addTiles(map = ll_map)
ll_map <- setView(map = ll_map, lat = 8.948676311286302, lng = -82.80862276977867,
zoom = 8)
addPopups(map = ll_map, lat = 8.948676311286302, lng = -82.80862276977867, popup = "Costa Rica")
```
Drygraphs Example
```{r}
library(dygraphs)
lungDeaths <- cbind(mdeaths, fdeaths)
dygraph(lungDeaths)
```
```{r}
dygraph(lungDeaths) %>% dyRangeSelector()
```
```{r}
dygraph(lungDeaths) %>%
dySeries("mdeaths", label = "Male") %>%
dySeries("fdeaths", label = "Female") %>%
dyOptions(stackedGraph = TRUE) %>%
dyRangeSelector(height = 20)
```
Plot example
```{r}
plot(1)
```
Kable example
```{r}
library(kableExtra)
```
```{r}
?kable_styling
```
```{r}
x_html <- knitr::kable(head(mtcars), "html")
kable_styling(x_html, "striped", position = "left", font_size = 7)
x_latex <- knitr::kable(head(mtcars), "latex")
kable_styling(x_latex, latex_options = "striped", position = "float_left")
```