── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ dplyr 1.1.4 ✔ readr 2.1.5
✔ forcats 1.0.0 ✔ stringr 1.5.2
✔ ggplot2 4.0.0 ✔ tibble 3.3.0
✔ lubridate 1.9.4 ✔ tidyr 1.3.1
✔ purrr 1.1.0
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag() masks stats::lag()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
library(compositions); library(patchwork)
Welcome to compositions, a package for compositional data analysis.
Find an intro with "? compositions"
Attaching package: 'compositions'
The following objects are masked from 'package:stats':
anova, cor, cov, dist, var
The following object is masked from 'package:graphics':
segments
The following objects are masked from 'package:base':
%*%, norm, scale, scale.default
asv_long_avg_wtax %>%group_by(PROX_TOSHORE, TRANSECT, STN_ORDER, STN_CATEGORY_3, DEPTH_ORDER, SAMPLE_ID, DEPTH, TEMP, Supergroup_simplified) %>%summarise(SUM_SEQ =sum(MEAN_REPS_seq),ASV_COUNT =n()) %>%filter(STN_CATEGORY_3 =="Coastal") %>%ggplot(aes(y = (DEPTH_ORDER), x = SUM_SEQ, fill = Supergroup_simplified)) +geom_bar(stat ="identity", position ="fill", color ="black") +facet_grid(rows =vars(STN_CATEGORY_3, STN_ORDER), space ="free", scales ="free") +theme_classic() +theme(strip.background =element_blank(),axis.text =element_text(color ="black") )
`summarise()` has grouped output by 'PROX_TOSHORE', 'TRANSECT', 'STN_ORDER',
'STN_CATEGORY_3', 'DEPTH_ORDER', 'SAMPLE_ID', 'DEPTH', 'TEMP'. You can override
using the `.groups` argument.
Coastal Stations Division Level
asv_long_avg_wtax %>%group_by(PROX_TOSHORE, TRANSECT, STN_ORDER, STN_CATEGORY_3, DEPTH_ORDER, SAMPLE_ID, DEPTH, TEMP, Division) %>%summarise(SUM_SEQ =sum(MEAN_REPS_seq),ASV_COUNT =n()) %>%filter(STN_CATEGORY_3 =="Coastal") %>%ggplot(aes(y = (DEPTH_ORDER), x = SUM_SEQ, fill = Division)) +geom_bar(stat ="identity", position ="fill", color ="black") +facet_grid(rows =vars(STN_CATEGORY_3, STN_ORDER), space ="free", scales ="free") +theme_classic() +theme(strip.background =element_blank(),axis.text =element_text(color ="black") )
`summarise()` has grouped output by 'PROX_TOSHORE', 'TRANSECT', 'STN_ORDER',
'STN_CATEGORY_3', 'DEPTH_ORDER', 'SAMPLE_ID', 'DEPTH', 'TEMP'. You can override
using the `.groups` argument.
asv_long_avg_wtax %>%group_by(PROX_TOSHORE, TRANSECT, STN_ORDER, STN_CATEGORY_3, DEPTH_ORDER, SAMPLE_ID, DEPTH, TEMP, Supergroup_simplified, OilRig_Count) %>%summarise(SUM_SEQ =sum(MEAN_REPS_seq),ASV_COUNT =n()) %>%ggplot(aes(y = (DEPTH_ORDER), x = SUM_SEQ, fill = Supergroup_simplified)) +geom_bar(stat ="identity", position ="fill", color ="black") +facet_grid(rows =vars(OilRig_Count, STN_ORDER), space ="free", scales ="free") +theme_classic() +theme(strip.background =element_blank(), axis.text =element_text(color ="black"))
`summarise()` has grouped output by 'PROX_TOSHORE', 'TRANSECT', 'STN_ORDER',
'STN_CATEGORY_3', 'DEPTH_ORDER', 'SAMPLE_ID', 'DEPTH', 'TEMP',
'Supergroup_simplified'. You can override using the `.groups` argument.
Nutrient Boxplots Arranged by Oil Rigs in 10 km Buffer Zone