-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] Bacterial Relative Abundance Over Time #136
Comments
Hi @AntonKjellberg, thanks for raising the issue. Looking back, i think the query functions is_lodes_form(toy, key = time, value = genus, id = id) When i run it, i get the following message:
So, the problem is that some values of #> count(toy, time, id)
#> # A tibble: 6 × 3
#> time id n
#> <chr> <dbl> <int>
#> 1 1m 1 11
#> 2 1m 2 11
#> 3 1w 1 11
#> 4 1w 2 11
#> 5 3m 1 11
#> 6 3m 2 11 You'll need to think carefully about what information you want to convey in the plot. What are the individuals or groups ( |
Thank you for your reply, Cory That makes sense! Unfortunately, I still struggle to display the data how I want. I want a plot like this where streams connect the blocks based on the genus abundance within the different ids
This plot represents the same overall structure, but the data wasn't available. (wave as time, n as abundance, key as genus, and alluvium id) I couldn't find a similar plot in the examples |
Hi @AntonKjellberg—notice from the source that the second plot is based on an |
Hi!
What an amazing package.
I'm trying to display how the mean relative abundance of different bacterial genera develops over time. I filtered for IDs that have samples for all three time points; however, I still can't get it to work.
Here is a fraction of the dataset. abundance has one entry for every combination of time(3), id(only 2 here) and genus(11). 3x2x11=66 in total.
Error in
geom_stratum()
:! Problem while computing stat.
ℹ Error occurred in the 1st layer.
Caused by error in
setup_data()
:! Data is not in a recognized alluvial form (see
help('alluvial-data')
for details).Run
rlang::last_trace()
to see where the error occurred.The text was updated successfully, but these errors were encountered: