-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathAnalysis.Rmd
59 lines (40 loc) · 987 Bytes
/
Analysis.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
---
title: "Penguin sizes"
output:
html_document: default
date: "2024-07-23"
authors: Daniel Falster, Fonti Kar, Will Cornwell
---
The data have been sourced from the Palmer penguins package, and saved as a csv.
```{r, message=FALSE}
library(tidyverse)
```
```{r}
data_penguin_sizes <- read_csv("data/penguin_sizes.csv")
```
```{r}
fit <- lm(bill_length_mm~species, data = data_penguin_sizes)
ggplot(data_penguin_sizes, aes(species, bill_length_mm, col = species)) +
geom_jitter(show.legend = FALSE) +
geom_boxplot(show.legend = FALSE, col="black", fill=NA) +
theme_classic() +
labs(
title = "Palmer penguins: comparison of bill lengths",
x = "Species", y = "Bill legnth (mm")
anova(fit)
```
There are `r data_penguin_sizes$species |> unique() |> length()` types of penguins in this dataset.
```{r}
data_penguin_sizes$species |> unique()
```
# Code environment
```{r}
sessionInfo()
```
```{r}
library(renv)
init()
```
```{r}
library(janitor)
```