Skip to content

Commit

Permalink
Add Krona plot
Browse files Browse the repository at this point in the history
  • Loading branch information
slambrechts committed Feb 12, 2024
1 parent 879049f commit 535f195
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions source/rmarkdown/annelida_data_analyse.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,21 @@ tidy_physeq_rarefied %>%
tidytacos::tacoplot_stack()
```

```{r}
# Create a new combined column
combined_column <- paste(sample_data(physeq_rarefied)$Landgebruik_MBAG, sample_data(physeq_rarefied)$Diepte, sep = "_")

Check warning on line 241 in source/rmarkdown/annelida_data_analyse.Rmd

View workflow job for this annotation

GitHub Actions / check project with checklist

file=source/rmarkdown/annelida_data_analyse.Rmd,line=241,col=81,[line_length_linter] Lines should not be more than 80 characters.
# Add the new combined column to the sample metadata with the desired name
sample_data(physeq_rarefied)$Landgebruik_MBAG_diepte <- combined_column
# Update the phyloseq object with the modified sample data
physeq_rarefied <- merge_phyloseq(physeq_rarefied, sample_data(physeq_rarefied))
psadd::plot_krona(physeq_rarefied, "MBAG_Olig01_Annelida_rar_species_alle_stalen_Landgebruik_MBAG_per_diepte", "Landgebruik_MBAG_diepte", trim = T)

Check warning on line 250 in source/rmarkdown/annelida_data_analyse.Rmd

View workflow job for this annotation

GitHub Actions / check project with checklist

file=source/rmarkdown/annelida_data_analyse.Rmd,line=250,col=81,[line_length_linter] Lines should not be more than 80 characters.

Check warning on line 250 in source/rmarkdown/annelida_data_analyse.Rmd

View workflow job for this annotation

GitHub Actions / check project with checklist

file=source/rmarkdown/annelida_data_analyse.Rmd,line=250,col=147,[T_and_F_symbol_linter] Use TRUE instead of the symbol T.
```

```{r}
tidy_physeq_rarefied %>%
tidytacos::tacoplot_stack(x = Landgebruik_MBAG)
Expand Down

0 comments on commit 535f195

Please sign in to comment.