LebeerLab / tidytacos

Functions to manipulate and visualize microbial community data
https://lebeerlab.github.io/tidytacos/
GNU General Public License v3.0
9 stars 1 forks source link

tacoplot_stack pie = TRUE suggestions #30

Closed david-barnett closed 4 months ago

david-barnett commented 4 months ago

To avoid misuse I feel the pie = TRUE should error if more than one sample is supplied. Or at least have an example of reasonable use.

library(tidytacos)
urt %>%
  filter_samples(sample_id == "s169") %>%
  tacoplot_stack(pie = TRUE)


urt %>%
  filter_samples(participant == "CON83") %>%
  tacoplot_stack(pie = TRUE)


urt %>% 
  filter_samples(location == "N", method == "S") %>%
  tacoplot_stack(pie = TRUE)

Created on 2024-07-25 with reprex v2.1.1