-
Notifications
You must be signed in to change notification settings - Fork 0
/
fish-length-weight.Rmd
62 lines (41 loc) · 1.09 KB
/
fish-length-weight.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
---
title: "Fish Length Assignment"
author: "Joe DeCesaro"
date: "8/2/2021"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
library(tidyverse)
```
# Header 1
## Header 2 with new text
### Header 3
#### Header 4
*Joe DeCesaro* and **Joe DeCesaro**
Joe^DeCesaro^ and Joe~DeCesaro~
Fruit Types
-Apples
-Red Apples
-Green Apples
-Bananas
Surfing Image:
![Surfing](surfing.jpeg)
```{r}
fish_length <- seq(from = 0, to = 200, by = 1)
standard_weight <- function(a, b, length) {
a*fish_length^b
}
milkfish <- standard_weight(a = 0.0905, b = 2.52, length = fish_length)
giant_trevally <- standard_weight(a = 0.0353, b = 3.05, length = fish_length)
great_barracuda <- standard_weight(a = 0.0181, b = 3.27, length = fish_length)
barracuda_data <- data.frame(fish_length, great_barracuda)
barracuda_data
```
```{r}
ggplot(data = barracuda_data, mapping = aes(x = fish_length, y = great_barracuda)) +
geom_point() +
labs(x = "Length (cm)",
y = "Standard Weight (grams)",
title = "Baracuda Weight by Increasing Length")
```