/
crosstalk_1.Rmd
executable file
·65 lines (53 loc) · 1.52 KB
/
crosstalk_1.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
title: "Crosstalk File 1"
author: "ADJ: Interactive Maps"
date: "9/26/2022"
output:
flexdashboard::flex_dashboard:
theme: paper
source_code: embed
---
```{r setup, include=FALSE}
# setting up R Markdown options
# We want to hide the code and only see the results
knitr::opts_chunk$set(echo = F)
# We don't want to see any warnings from our code
knitr::opts_chunk$set(warning = F)
# We don't want to see any messages
knitr::opts_chunk$set(message = F)
```
```{r install_packages}
# You must have the flexdashboard package installed
# Before knitting this R Markdown file
# install.packages("flexdashboard")
# This function checks if you don't have the correct packages installed yet
# If not, it will install it for you
packages <- c("tidyverse", "flexdashboard",
"crosstalk", "leaflet", "DT")
if (length(setdiff(packages, rownames(installed.packages()))) > 0) {
install.packages(setdiff(packages, rownames(installed.packages())), repos = "http://cran.us.r-project.org")
}
library(tidyverse)
library(flexdashboard)
library(crosstalk)
library(leaflet)
library(DT)
```
Opioids in State {data-icon="ion-stats-bars"}
=====================================
Column {data-width=200}
-------------------------------------
### Filters
```{r filter_section}
print("Filter stuff goes here")
```
Column {data-width=800}
-------------------------------------
### Datatable
```{r filterable_table}
print("Filterable table goes here")
```
### Interactive map
```{r interactive_map}
print("Interactive map goes here")
```