Skip to content

Commit 7d7e51d

Browse files
committed
Update to add graphs for plotting abundance of Cyclotella in upstream and downstream regions.
1 parent b24d1d6 commit 7d7e51d

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

phyto-final/phyto-analyses-FASTR.Rmd

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ plots <- here("phyto-final","plots")
2222
```
2323

2424
## Import data from Processing Scripts
25+
2526
```{r import data}
2627
2728
# Read in RData files processed in the data processing Rmd file
@@ -247,6 +248,41 @@ ggsave(path = plots,
247248
248249
```
249250

251+
## Plot Abundance of Cyclotella
252+
SIMPER analysis showed that the genus Cyclotella was a primary differentiator between the upstream and downstream regions. This code creates a boxplot to look at the differential abundance between each region.
253+
254+
```{r cyclotella, echo=FALSE, message=FALSE}
255+
256+
# Compare Cyclotella Abundance Upstream and Downstream -------------------------
257+
258+
theme_set(theme_bw())
259+
260+
p_cyc <- ggplot(df_phyto_FASTR_gen_BV,
261+
aes(x = Region,
262+
y = log10(BV.um3.per.mL+1))) +
263+
geom_jitter(data = subset(df_phyto_FASTR_gen_BV, Genus == "Cyclotella"),
264+
width = 0.1) +
265+
geom_boxplot(data = subset(df_phyto_FASTR_gen_BV, Genus == "Cyclotella"),
266+
width = 0.1,
267+
outlier.shape = NA)
268+
269+
p_cyc +
270+
labs(y = bquote(Log[10]~'Biovolume Density'~(um^3~mL^-1)),
271+
x = NULL) +
272+
facet_wrap(Year ~ ., ncol = 3)
273+
274+
ggsave(path = plots,
275+
filename = "cyclotella_abundance.png",
276+
device = "png",
277+
scale=1.0,
278+
units="in",
279+
height=3.5,
280+
width=6.5,
281+
dpi="print")
282+
283+
```
284+
285+
250286
## Calculate ANOVAs
251287

252288
```{r anovas}

0 commit comments

Comments
 (0)