-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflex_example.Rmd
More file actions
82 lines (54 loc) · 879 Bytes
/
flex_example.Rmd
File metadata and controls
82 lines (54 loc) · 879 Bytes
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
---
title: "Example"
output:
flexdashboard::flex_dashboard:
vertical_layout: scroll
source_code: embed
navbar:
- {icon: "fa-github", href: "https://github.com/jdaas/DynamicExamples/"}
---
Page 1
========
Column 1 {.sidebar}
--------
This is the Sidebar
Column 2 {.tabset}
--------
In this column, there are two tabs.
### Chart one
This is the first chart:
```{r}
a <- 1:10
b <- 10:1
plot (a, b)
```
### Chart two
Here is an another chart:
```{r}
plot (a, -b)
```
Column 3
---
Another plot
```{r}
plot (a * 2, b)
```
Page 2
====
You can have multiple pages! Here the plots are in normal charts, without tabset:
Column 1
-----
### Chart 1
```{r}
plot (a,b)
```
### Chart 2
```{r}
plot (a, -b)
```
Column 2
----
### Chart 1
```{r}
plot (a * 2, b)
```