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}
|
||||
#| eval: false
|
||||
# Below the graph of taxa abundance
|
||||
# otus <- per_taxa_no_names <- collapse_otu_at_taxo(phylo_data = the_data, renameOTUs = FALSE)
|
||||
otu_mat <- as(otu_table(the_data), "matrix")
|
||||
|
|
@ -171,3 +172,19 @@ kables_sd <- lapply(per_taxa_network, function(matrix) {
|
|||
})
|
||||
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