Update stats panels with sequencing effort
This commit is contained in:
parent
29728d8205
commit
65e305e297
1 changed files with 17 additions and 0 deletions
|
|
@ -91,6 +91,7 @@ otu_table_plot
|
||||||
```
|
```
|
||||||
|
|
||||||
```{r}
|
```{r}
|
||||||
|
#| eval: false
|
||||||
# Below the graph of taxa abundance
|
# Below the graph of taxa abundance
|
||||||
# otus <- per_taxa_no_names <- collapse_otu_at_taxo(phylo_data = the_data, renameOTUs = FALSE)
|
# otus <- per_taxa_no_names <- collapse_otu_at_taxo(phylo_data = the_data, renameOTUs = FALSE)
|
||||||
otu_mat <- as(otu_table(the_data), "matrix")
|
otu_mat <- as(otu_table(the_data), "matrix")
|
||||||
|
|
@ -170,4 +171,20 @@ kables_sd <- lapply(per_taxa_network, function(matrix) {
|
||||||
kable(sd_df, row.names = FALSE)
|
kable(sd_df, row.names = FALSE)
|
||||||
})
|
})
|
||||||
kables_sd
|
kables_sd
|
||||||
|
```
|
||||||
|
|
||||||
|
```{r}
|
||||||
|
boxplots <- lapply(per_taxa_network, function(matrix) {
|
||||||
|
df_mat <- stack(as.data.frame(t(matrix)))
|
||||||
|
ggplot(df_mat, aes(y = values, x = ind, fill = ind)) +
|
||||||
|
geom_boxplot()
|
||||||
|
})
|
||||||
|
boxplots[-7]
|
||||||
|
```
|
||||||
|
|
||||||
|
```{r}
|
||||||
|
seq_effort <- lapply(per_taxa_network, function(matrix) {
|
||||||
|
colSums(matrix)
|
||||||
|
})
|
||||||
|
seq_effort
|
||||||
```
|
```
|
||||||
Loading…
Add table
Reference in a new issue