Iris

Dataset

Dataset Preview

  Sepal.Length Sepal.Width Petal.Length Petal.Width Species
1          5.1         3.5          1.4         0.2  setosa
2          4.9         3.0          1.4         0.2  setosa
3          4.7         3.2          1.3         0.2  setosa
4          4.6         3.1          1.5         0.2  setosa
5          5.0         3.6          1.4         0.2  setosa
6          5.4         3.9          1.7         0.4  setosa

Number of Species

3

Number of Sample

150

Length Comparison

Species Comparison

Length Comparison

Sepal Length

Petal Length

Width Comparison

Sepal Width

Petal Width

---
title: "Iris Dashboard"
output: 
  flexdashboard::flex_dashboard:
    orientation: rows
    vertical_layout: fill
    source_code: embed
    self_contained: true
    social: menu
---

```{r setup, include=FALSE}
library(flexdashboard)
library(tidyverse)

```

Iris {data-width=650}
-----------------------------------------------------------------------
# Dataset
### Dataset Preview

```{r}
head(iris)
```
### Number of Species
```{r}
valueBox(
length(unique(iris$Species)),
"Number of Species"
)
```
### Number of Sample
```{r}
valueBox(
nrow(iris),
"Total Flower Samples"
)
```


Length Comparison {data-width=350}
-----------------------------------------------------------------------
# Species Comparison
## Length Comparison
### Sepal Length

```{r}
ggplot(iris, aes(x = Species, y = Sepal.Length)) +
geom_boxplot() +
labs(
title = "Sepal Length by Species",
x = "Species",
y = "Sepal Length (cm)"
)
```

### Petal Length

```{r}
ggplot(iris, aes(x = Species, y = Petal.Length)) +
geom_boxplot() +
labs(
title = "Petal Length by Species",
x = "Species",
y = "Petal Length (cm)"
)
```

## Width Comparison
### Sepal Width
```{r}
ggplot(iris, aes(x = Species, y = Sepal.Width)) +
geom_boxplot() +
labs(
title = "Sepal Width by Species",
x = "Species",
y = "Sepal Width (cm)"
)
```

### Petal Width
```{r}
ggplot(iris, aes(x = Species, y = Petal.Width)) +
geom_boxplot() +
labs(
title = "Petal Width by Species",
x = "Species",
y = "Petal Width (cm)"
)
```