-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAsha_output.Rmd
67 lines (38 loc) · 1.88 KB
/
Asha_output.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: "Asha's Markdown Intro"
author: "MCampbell"
date: "24 April 2020"
output: html_document
---
# General markdown tips courtesy of Rstudio
Scroll down to the ASHA section for plots and stats and whatnot
## R Markdown
This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see <http://rmarkdown.rstudio.com>.
When you click the **Knit** button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:
```{r cars}
summary(cars)
```
## Including Plots
You can also embed plots, for example:
```{r pressure, echo=FALSE}
plot(pressure)
```
Note that the `echo = FALSE` parameter was added to the code chunk to prevent printing of the R code that generated the plot.
## ASHA
Welcome to your markdown file! Hooray!
Some amazing scientists collected a heap of fish data. They've analysed it in R, a statistical programming language for tabular data, and the results are AMAZING. Wow!
Here's an awesome plot which shows the distribution of species by ocean basin.
```{r Fish-plot, echo=FALSE, message=FALSE, warning=FALSE, caption = "AN AWESOME FISH PLOT"}
source("scripts/02_plot_fish_data.R")
plot3
```
Results show that all of the fish found at depth "Bottom" are located in the Pacific Ocean.
```{r Fish2-plot, echo=FALSE, message=FALSE, warning=FALSE, caption = "AN AWESOME FISH PLOT"}
source("scripts/02_plot_fish_data.R")
plot5
```
```{r lmrsq, echo=FALSE, message=FALSE, warning=FALSE}
source("scripts/03_linear_models_on_fish_data.R")
rsqfitnice <- paste("R^2^ = ", round(rsqfit2, 2))
```
Although all bottom dwelling fish were found in the Pacific Ocean, a linear model of all fish counts and location showed that location only described ~12% of the variance (`r rsqfitnice`).