-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.Rmd
60 lines (45 loc) · 1.25 KB
/
index.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
---
title: "Dahsboarding_Class"
output:
flexdashboard::flex_dashboard:
orientation: column
vertical_layout: fill
social: ["menu"]
source_code: embed
---
```{r setup, include=FALSE}
library(flexdashboard)
library(tidyverse)
library(palmerpenguins)
data("penguins")
```
Plots
===============================================================
This is a dashboard for the dashboard class.
Column {data-width=650}
-----------------------------------------------------------------------
### Scatter plot of bill length vs depth
```{r}
a = penguins %>% ggplot(aes(x = bill_length_mm, y = bill_depth_mm,
color = species))+geom_point()+
theme_classic()
plotly::ggplotly(a)
```
>Look at this awesome scatter plot!!
Column {data-width=350}
-----------------------------------------------------------------------
### Box plot of body mass by sex
```{r}
penguins %>% ggplot(aes(x = body_mass_g, y = sex, fill = sex))+
geom_boxplot()+theme_classic()
```
### Histogram flipper length by species
```{r}
penguins %>% ggplot(aes(x = flipper_length_mm, fill = species))+
geom_histogram()+facet_wrap(~species)+theme_classic()
```
Data
=================================================================
```{r}
DT::datatable(penguins)
```